Forum OpenACS Development: Re: XoWiki 0.36

Collapse
20: Re: XoWiki 0.36 (response to 1)
Posted by Dave Bauer on
The version of ns_cache you are using doeen't support the parameter xowiki is using, specifically "pattern". In previous versions of ns_cache, "ns_cache names" only took one parameter. The latest version has a second optional parameter.

AFAICT you need to acutally get ns_cache from CVS to get this version of the code. You can also change the code to this:

lsearch [ns_cache names xowiki_cache] link-*-$folder_id

instead of

ns_cache names xowiki_cache link-*-$folder_id

Collapse
21: Re: XoWiki 0.36 (response to 20)
Posted by Gustaf Neumann on
yes, ns_cache 1.5 is needed. it is available since a couple of years. i would recommend the more recent version of ns_cache rather than the lsearch variant since this is more efficient. There is more than one occurance, where "ns_cache names .... pattern" is used.
Collapse
26: Re: XoWiki 0.36 (response to 21)
Posted by Dave Bauer on
Gustaf.

We have been using ns_cache 1.5 on openacs.org for quite some time. It does not include a "pattern" argument to ns_cache names.

From this the parameter was added on May 8, 2003
http://aolserver.cvs.sourceforge.net/aolserver/nscache/tclcache.c?view=log

and ns_cache 1.5 was released on March 16, 2003.
http://sourceforge.net/project/showfiles.php?group_id=3152&package_id=60515&release_id=146794

Maybe someone can do a new release of ns_cache, the only difference is that optional pattern parameter.