how to deal with zend meta data cache

1.5k Views Asked by At

I am working on a project developed in zend framework. The developer who worked already has used zend metadata cache and using zend function info() to get metadata of the table.

Now I have inserted a new field status in the table. Now the table is not returning the new field.

The code for creating cache is as follow

$frontendOptions = array(
        'automatic_serialization' => true,
        'lifetime' => 100000,
        'cache_id_prefix' => 'metaData_',
    );
    $backendOptions = array();
    $cache = Zend_Cache::factory(
        'Core', 
        'File',
        $frontendOptions,
        $backendOptions
    );
    Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);

I tried to delete the cache by using

$cache = Zend_Cache::factory();
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
$cache->clean(Zend_Cache::CLEANING_MODE_ALL); 

Can somebody tell me how to deal with this problem?

0

There are 0 best solutions below