On Tuesday 01 Mar 2011 17:35:03 Hector Virgen wrote:
> On Tue, Mar 1, 2011 at 12:00 AM, koji ueda <[email protected]> wrote:
> > Is there a way of refresh or clear cache?
> 
> If your cache only contains db meta data you can call
> $cache->clean(Zend_Cache::CLEANING_MODE_ALL);
> 
> If it has other cache data then I suggest using a cache id prefix. Check
> out the docs for how to set up the cache id prefix:
> 
> http://framework.zend.com/manual/en/zend.cache.frontends.html

When Zend_Cache is used, the cache id is created as 
"port:host/dbname:schema.table". From the code:

$cacheId = md5($port . $host . '/'. $dbConfig['dbname'] . ':'
                 . $this->_schema. '.' . $this->_name);

So if you know these values you can also create the cache id again and only 
remove that entry.

Regards, Jurian
-- 
Jurian Sluiman
Soflomo - http://soflomo.com

Reply via email to