Skip to content

Instantly share code, notes, and snippets.

@jscherer26
Created January 11, 2010 06:18
Show Gist options
  • Save jscherer26/274032 to your computer and use it in GitHub Desktop.
Save jscherer26/274032 to your computer and use it in GitHub Desktop.
Zend Application resources.cachemanager
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"
<?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