The cache system is used to cache data that may be used but not updated often. The property system uses the cache system to store resolved properties for rapid subsequent retrievals. Once again since not everyone has a MySQL database server, there exists two core types of cache service -- database and file system based. You should look to the appropriate configuration section below for which applies to your project.
Set this to database to
enable the database cache system.
$GLOBALS['interJinn']['cacheSystem'] = 'database';
This determines how often the cache is cleaned. In other
words, how often expired cache entries are flushed. Whenever a page is a
loaded the cache engine chooses a random number between 1 and $GLOBALS['interJinn']['cacheCleanupOdds']. If the chosen random number equals 1 then the cache is flushed. If this value is set to zero then
the cache will never be flushed. This is very useful if you wish to use an
external daemon to perform the cleanup.
$GLOBALS['interJinn']['cacheCleanupOdds'] = 500;
This can be set to true or
false. If set to true, and your version of PHP
has support for zlib, then all cached data will be compressed when stored.
$GLOBALS['interJinn']['cacheCompression'] = true;
When this has not been set, then the InterJinn database declaration with the name
default is used for all database caching
operations. The value of this may either be a name of a declared database or
an array containing the appropriate database connection parameters as
described in the database declaration section.
$GLOBALS['interJinn']['cacheDatabase'] = 'someOtherDatabase';
When this has been set, all tables accessed by the cache service will be prefixed with the given value. This makes it possible to use InterJinn database caching within a pre-existing site that may already use any of the required table names.
$GLOBALS['interJinn']['cacheTablePrefix'] = 'interjinn_';
Set this to file to enable
the file system based cache system.
$GLOBALS['interJinn']['cacheSystem'] = 'file';
This can be set to true or false. If set to true, and your version of PHP has support for zlib,
then all cached data will be compressed when stored.
$GLOBALS['interJinn']['cacheCompression'] = true;
This determines how often the cache is cleaned. In otherwords how often
expired cache entries are flushed. Whenever a page is a loaded the cache
engine chooses a random number between 1 and
$GLOBALS['interJinn']['cacheCleanupOdds']. If
the chosen random number equals 1 then the
cache is flushed. If this value is set to zero then the cache will never be
flushed. This is very useful if you wish to use an external daemon to perform
the cleanup.
$GLOBALS['interJinn']['cacheCleanupOdds'] = 500;
This should be set to the root path at which all of your cached data should be stored. Make sure that you have the right permissions and ownerships set for the target or you will have problems when the cache system attempts to create or access the stored data.
$GLOBALS['interJinn']['propertyDataPath'] =
'/var/www/interJinn/data/yourProject/cache/';