Controller/Action/Helper/Cache.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
- Version
- $Id$
\Zend_Controller_Action_Helper_Cache
Package: Zend_Controller\Zend_Controller_Action_Helper- Parent(s)
- \Zend_Controller_Action_Helper_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
array $_caching = array()
Indexed map of Actions to attempt Page caching on by Controller
Default valuearray()
Details- Type
- array
array $_extensions = array()
Indexed map of Extensions by Controller and Action
Default valuearray()
Details- Type
- array
$_obStarted = false
Track output buffering condition
Default valuefalse
Details- Type
- n/a
array $_tags = array()
Indexed map of Tags by Controller and Action
Default valuearray()
Details- Type
- array
Methods
__call(string $method, array $args) : mixed
Proxy non-matched methods back to Zend_Cache_Manager where
appropriate
ParametersName | Type | Description |
---|
$method | string | |
---|
$args | array | |
---|
Returns _encodeCacheId(string $requestUri) : string
Encode a Cache ID as hexadecimal. This is a workaround because Backend ID validation
is trapped in the Frontend classes. Will try to get this reversed for ZF 2.0
because it's a major annoyance to have IDs so restricted!
ParametersName | Type | Description |
---|
$requestUri | string | |
---|
Returns direct(array $actions, array $tags = array(), $extension = null) : void
Tell the helper which actions are cacheable and under which
tags (if applicable) they should be recorded with
ParametersName | Type | Description |
---|
$actions | array | |
---|
$tags | array | |
---|
$extension | | |
---|
removePage(string $relativeUrl, bool $recursive = false) : mixed
Remove a specific page cache static file based on its
relative URL from the application's public directory.
The file extension is not required here; usually matches
the original REQUEST_URI that was cached.
ParametersName | Type | Description |
---|
$relativeUrl | string | |
---|
$recursive | bool | |
---|
ReturnsremovePagesTagged(array $tags) : mixed
Remove a specific page cache static file based on its
relative URL from the application's public directory.
The file extension is not required here; usually matches
the original REQUEST_URI that was cached.
ParametersName | Type | Description |
---|
$tags | array | |
---|
Returns