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"

One Comment

  1. Caching in DotKernel using Zend Framework | DotKernel PHP Application Framework

    […] For more info about the configuration and help configuring the cache see: Configuring the Cache in DotKernel. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>