Implements interfaces:
A simple object cache
This cache simply stores serialized objects in files to gain more performance for objects which do not change on a regular basis, are session-independent and need a lot of time to be build. An example of usage is the ModuleList object in ModuleOverlay. This object needs only to be build when the module directory changes and does a lot of parsing (the ModuleItem object cached in this list parse their modinfo xml files on creation) - in reality this already makes a big difference when only one module is present (personal benchmark with one module gives a speedup factor of about 3 to 4 times when run for the second time).
The cache storage may be switched but when storage is only avaialable as module then the module cache will be built using the default file-based implementation. This might cause cache elements to be built twice.
Otherwise cache modules need to be patched into the core (I have done this with a memcached based implementation).
Located in /phpsatk-lib/core/05.cachemanager.php (line 52)
Setup cache directory
Deletes cache files older than one week.
This function cleans up the cache directory
All files older than one week will be deleted
Fetches the cached object of a specified class/id
Checks whether an object exists in cache
If not the object using this has to create the wanted object, fill it with data and save it to the cache. Otherwise it can fetch it from the cache.
Stores an object in the cache
Removes the specified object from cache
Sets the used cached manager
Documentation generated on Mon, 21 May 2007 10:34:34 +0200 by phpDocumentor 1.3.0RC5