Exemplo n.º 1
0
 /**
  * After fetch callback, writes data back to the cache.
  * @param Array $args
  * @return Void
  */
 public function afterFetch(&$args)
 {
     if (!$this->_openCacheKey) {
         return;
     }
     $model = $args[0];
     $results = $args[1];
     $cacheKey = $this->_openCacheKey;
     Garp_Cache_Manager::writeQueryCache($model, $cacheKey, $results);
     // reset the key
     $this->_openCacheKey = '';
 }