library/Garp/Model/Behavior/Cachable.php
public function createCacheKey(Garp_Model $model, Zend_Db_Select $select) {
        $boundModels = serialize(Garp_Model_Db_BindingManager::getBindingTree(get_class($model)));
        $hash = md5(
            md5($select).
            md5($boundModels)
        );
        return $hash;
    }
public function createCacheKey(Garp_Model $model, Zend_Db_Select $select) {
        $boundModels = serialize(Garp_Model_Db_BindingManager::getBindingTree(get_class($model)));
        $hash = md5(
            md5($select).
            md5($boundModels)
        );
        return $hash;
    }
public function createCacheKey ( Garp_Model $ model , Zend_Db_Select $ select ) { $ boundModels = serialize ( Garp_Model_Db_BindingManager :: getBindingTree ( get_class ( $ model ) ) ) ; $ hash = md5 ( md5 ( $ select ) . md5 ( $ boundModels ) ) ; return $ hash ; }
Create a unique hash for cache entries, based on the SELECT object,
but also on the registered bindings, because a query might be the same
with different results when bindings come into play.
@param Garp_Model $model
@param Zend_Db_Select $select
@return String
Create a unique hash for cache entries based on the SELECT object but also on the registered bindings because a query might be the same with different results when bindings come into play .