Zend Page Cache

The Zend Page Cache component is used to cache the entire output of PHP scripts without changing the PHP code.
The Zend Page Cache improves PHP application performance by caching the entire output of PHP scripts (HTML, XML, etc.) while still maintaining dynamic capabilities through an elaborate rules system. Rules are configured in the Zend Server Administration Interface.

PHP API

Function: page_cache_disable_caching()
Disables output caching for the current request. This overrides any caching settings that are configured for the current request.

Returns:
Available since: 4.0


Function: page_cache_disable_compression()
Does not allow the cache to perform compression on the output of the current request. This overrides any compression settings that are configured for this request.

Returns:
Available since: 4.0


Function: page_cache_remove_cached_contents(string URL)
Clears cached contents for all requests that match a specific URL or regular expression

Parameters:
string URL - The URL or regular expression

Returns:
Available since: 4.0


Function: page_cache_remove_all_cached_contents()
Clears all cached contents

Returns:
Available since: 4.0

INI Directives:

zend_pagecache.enable
Enables the Zend Page Cache extension

Default value(s):
1:
Type: boolean
Measurement units:
Available since: 4.0

zend_pagecache.save_path
Location where the cache files are saved. This must point to an existing location.

Default value(s):
pagecache:
Type: string
Measurement units:
Available since: 4.0

zend_pagecache.dir_depth
Depth of directory tree in which cached files are stored

Default value(s):
2:
Type: int
Measurement units:
Available since: 4.0

zend_pagecache.log_verbosity_level
The log verbosity level [0-5]
The extension's log verbosity level. Level 1 includes very important information messages, errors and warnings. Level 2 displays notices. Greater levels (up to 5) are reserved for debug purposes
Default value(s):
0:
Type: int
Measurement units:
Available since: 4.0

zend_pagecache.dependencies_file
The location of the configuration file in which caching rules are stored

Default value(s):
page_cache_deps.xml:
Type: string
Measurement units:
Available since: 4.0

zend_pagecache.compression_enable
Enables file compression of cached output

Default value(s):
1:
Type: boolean
Measurement units:
Available since: 4.0

zend_pagecache.clean_frequency
How often expired entries are removed from the cache. The cleaning frequency is configured in seconds

Default value(s):
300:
Type: int
Measurement units: seconds
Available since: 4.0

zend_pagecache.log_rotation_size
The maximum size of the log file before it is rotated
The maximum size of the log file before it is rotated
Default value(s):
10:
Type: int
Measurement units: MBytes
Available since: 4.0