This article contains the DotKernel cache layer configuration guide.
The DotKernel Caching Layer is based on Zend Framework Cache, more configuration options can be found at the following links:
Main cache settings (Cache Frontend)
The main cache settings within the application.ini file should look like this:
cache.enable = true cache.factory = "apc" cache.lifetime = "86400" cache.namespace = "dotkernel"
The cache.enable option can be used to disable caching, mostly used in development stage.
The cache.factory value will be the cache service we want to use: file or apc
The cache.namespace will be the cache variables prefix and the cache.lifetime value will define how long the variables cached will be usable before they will need to be re-cached.
Individual cache settings (Cache Backend)
The individual cache settings are optional but we highly recommend that you have theese values set, otherwise other projects might use the same cache
; file caching settings cache.file.cache_dir = APPLICATION_PATH "/cache" cache.file.cache_file_perm = 0600
For more settings and caching alternatives see the Zend Framework Cache Links at the article beginning.
The setting pattern and sample are below:
cache.BACKEND_NAME.SETTING = "VALUE" ; example: cache.file.file_name_prefix = "DotKernel"