Created
January 11, 2010 06:18
-
-
Save jscherer26/274032 to your computer and use it in GitHub Desktop.
Zend Application resources.cachemanager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources.cachemanager.app.frontend.name = Core | |
resources.cachemanager.app.frontend.options.lifetime = 604800 | |
resources.cachemanager.app.frontend.options.automatic_serialization = true | |
resources.cachemanager.app.frontend.options.automatic_cleaning_factor = 1 | |
resources.cachemanager.app.backend.name = File | |
resources.cachemanager.app.backend.options.lifetime = 604800 | |
resources.cachemanager.app.backend.options.cache_dir = PUBLIC_PATH "/data/cache" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
private $_cache = null; | |
protected function _initCache() | |
{ | |
$this->bootstrap('cachemanager'); | |
$this->_cache = $this->getResource('cachemanager')->getCache('app'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment