Zend Cache Directives

Directive

Mode

Description

zend_cache.disk.dir_levels

PHP_INI_SYSTEM

Disk cache API only. Sets the directory depth for storing the keys. (e.g. by setting dir_level to 2 and storing 'KEY', the new partial caching will place the 'KEY' under 2 directories below the save path (see below)). Possible values are 0,1 or 2.

zend_cache.disk.save_path

PHP_INI_SYSTEM

Disk cache API only. sets the path for the disk caching.

zend_cache.shm.memory_cache_size

PHP_INI_SYSTEM

Shared memory cache API only. Sets the memory size to be used by the cache.

zend_cache.shm.max_segment_size

PHP_INI_SYSTEM

Shared memory cache API only. Defines the Shared Memory's segment size.

Defining the segment size to the same size as the cache size will create one segment. If you set the segment size to a smaller value the cache will be segmented. For example: cache size = 4 and segment size = 1, creates 4 segments in the cache.

zend_cache.enabled

PHP_INI_SYSTEM

Enables partial caching. To disable set to 0 and all API functions will return false, or NULL.

 

 

Related Links

Related Links:
Zend Cache Functions

Zend Cache API