Item3695: Caching for Foswiki
Priority: Enhancement
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
See
FoswikiCache
--
MichaelDaum - 28 Feb 2007
Regrading to Enhancement,
CC
needs docu, unit tests
--
MichaelDaum - 09 Jun 2009
I modified the Foswiki.spec file to put the cache and db files into the foswiki workingdir -
that way we won't accidentally clobber the live foswiki installs when we're testing an upgrade,
nor expose the default setup to /tmp dir security hacks.
when shall we enable it on
http://trunk.foswiki.org?
--
SvenDowideit - 25 Jun 2009
- - it appears to me that you cannot quite totally disable it at the moment? (or maybe the defaults in the code are on, when there are no settings in the LocalSite.cfg)
my {cache}{Enabled} is not set, and yet i'm getting
Cannot open file /data/trunk/core/working/foswiki_db: Permission denied at /data/trunk/core/lib/Foswiki/Cache/DB_File.pm line 72.
errors.
--
SvenDowideit - 25 Jun 2009
Sven, your latest fix broke the unit tests because there was a bug in Meta.pm (it didn't check if the cache was activated before trying to use it in fireDependency).
Fixed.
--
OlivierRaginel - 27 Jul 2009
Sven, yea, it seems as if the metaHandler inside the PageCache gets build even though it never is used. Actually, constructing the PageCache should be skipped all together. Not sure why I did it that way ....
Meanwhile I've been running into other serious trouble where the metaHandler fails to freeze some strings it def shoud be able to. Got that fixed by skipping Storable for certain non-ref objects that go into a DB_File cache. Will add the same enhancement
to the BDB cache manager as well ... (/me waiting for the train back home in a wifi cafe in Amsterdam
)
--
MichaelDaum - 01 Aug 2009
Closing this, 1.1 is released.
--
GeorgeClark - 06 Dec 2010