library/Garp/Model/Behavior/Cachable.php
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 = '';
    }
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 = '';
    }
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 = '' ; }
After fetch callback, writes data back to the cache.
@param Array $args
@return Void
After fetch callback writes data back to the cache .