Controller/Action/Helper/Cache.php
- 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
- 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()array()Details- Type
- array

array $_extensions = array()array()Details- Type
- array

\Zend_Cache_Manager $_manager = nullnullDetailsMethods

__call(string $method, array $args) : mixedProxy non-matched methods back to Zend_Cache_Manager where appropriate
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Type | Description |
|---|---|
| mixed |

_encodeCacheId(string $requestUri) : stringEncode 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!
| Name | Type | Description |
|---|---|---|
| $requestUri | string |
| Type | Description |
|---|---|
| string |

direct(array $actions, array $tags = array(), $extension = null) : voidTell the helper which actions are cacheable and under which tags (if applicable) they should be recorded with
| Name | Type | Description |
|---|---|---|
| $actions | array | |
| $tags | array | |
| $extension |

getCacheableActions() : arrayReturn a list of actions for the current Controller marked for caching
| Type | Description |
|---|---|
| array |

getCacheableTags() : arrayReturn a list of tags set for all cacheable actions
| Type | Description |
|---|---|
| array |

getManager() : \Zend_Cache_ManagerGet the Cache Manager instance or instantiate the object if not exists. Attempts to load from bootstrap if available.
| Type | Description |
|---|---|
| \Zend_Cache_Manager |

removePage(string $relativeUrl, bool $recursive = false) : mixedRemove a specific page cache static file based on its relative URL from the application's public directory.
| Name | Type | Description |
|---|---|---|
| $relativeUrl | string | |
| $recursive | bool |
| Type | Description |
|---|---|
| mixed |

removePagesTagged(array $tags) : mixedRemove a specific page cache static file based on its relative URL from the application's public directory.
| Name | Type | Description |
|---|---|---|
| $tags | array |
| Type | Description |
|---|---|
| mixed |

setManager(\Zend_Cache_Manager $manager) : voidSet an instance of the Cache Manager for this helper
| Name | Type | Description |
|---|---|---|
| $manager | \Zend_Cache_Manager |