Example #1
0
 /**
  * Returns a query cache instance.
  *
  * @return Erfurt_Cache_Frontend_QueryCache
  */
 public function getQueryCache()
 {
     if (null === $this->_queryCache) {
         $config = $this->getConfig();
         require_once 'Erfurt/Cache/Frontend/QueryCache.php';
         $this->_queryCache = new Erfurt_Cache_Frontend_QueryCache();
         $backend = $this->_getQueryCacheBackend();
         $this->_queryCache->setBackend($backend);
     }
     return $this->_queryCache;
 }