This topic lists the PHP API functions of the Zend Page Cache.
Function |
Description |
Disables output caching for the current request. This overrides any caching settings that are configured for the current request. |
|
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. |
|
Clears cached contents for all requests that match a specific URL or regular expression. The URL parameter should be the concatenation of the schema, host, and path of a caching rule. |
|
Clears all cached contents. |
|
Clears cached contents that were created by a specific URI in a specific rule. The rule must consist of one split condition/cache version - the request URI |
Disables output caching for the current request. This overrides any caching settings that are configured for the current request.
Available Since Version: 4.0
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.
Available Since Version: 4.0
Clears cached contents for all requests that match a specific URL or regular expression. The URL parameter should be the concatenation of the schema, host, and path of a caching rule.
Available Since Version: 4.0
Parameter |
Type |
Required |
Description |
URL |
string |
Yes |
The URL or regular expression. |
Clears all cached contents.
Available Since Version: 4.0
Clears cached contents that were created by a specific URI in a specific rule.
Note:
The rule must consist of one split condition/cache version - the request URI.
Available Since Version: 6.0
Parameter |
Type |
Required |
Description |
ruleName |
string |
Yes |
The rule name. |
URI |
string |
Yes |
The URI. |
Return Value: boolean - True if successful. False otherwise.
<?php page_cache_remove_cached_contents_by_uri("My URI Rule", "/script.php"); ?>