API Reference Guide > Zend Page Cache - PHP API

Zend Page Cache - PHP API

This topic lists the PHP API functions of the Zend Page Cache.

Zend Page Cache Functions

Function

Description

page_cache_disable_caching

Disables output caching for the current request. This overrides any caching settings that are configured for the current request.

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.

page_cache_remove_cached_contents

Clears cached contents for all requests that match a specific URL or regular expression.

page_cache_remove_all_cached_contents

Clears all cached contents.

page_cache_remove_cached_contents_by_uri

Clears cached contents that were created by a specific URI in a specific rule. The rule must consist of one split by rule - the request URI

page_cache_disable_caching

Disables output caching for the current request. This overrides any caching settings that are configured for the current request.

Available Since Version: 4.0

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.

Available Since Version: 4.0

page_cache_remove_cached_contents

Clears cached contents for all requests that match a specific URL or regular expression.

Available Since Version: 4.0

Parameter

Type

Required

Description

URL

string

Yes

The URL or regular expression.

page_cache_remove_all_cached_contents

Clears all cached contents.

Available Since Version: 4.0

page_cache_remove_cached_contents_by_uri

Clears cached contents that were created by a specific URI in a specific rule. The rule must consist of one split by rule - 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