caching - CakePhp Cache Clear All Models -


i have configuration in core.php

 $memcacheserver =  '127.0.0.1:11211';  $engine         =  'memcached';  cache::config('default', array(     'engine' => $engine,       'duration' => 3600,       'probability' => 100,       'prefix' => $prefix,       'servers' => array(         $cacheserver // localhost, default port 11211     ), //[optional]             'groups' => array(                 'catalogs',                 'products',                 'aro',                 'aco',                 'product_categories',                 'available.cats',                 'available.prod.cats',                 'this.user.catalogs',                 'temp.comp.fetch' ,                 'uc'  ),     'persistent' => 'my_connection', // [optional] name of persistent connection.     'compress' => true, // [optional] compress data in memcached (slower, uses less memory)   )); cache::config('_cake_core_', array(                 'engine' => $engine,                 'servers' => array(                     $memcacheserver // localhost, default port 11211         ),         'prefix' => $prefix . 'cake_core_',         'path' => cache . 'persistent' . ds,                     'duration' => $duration,         'persistent' => 'my_connection' ));     cache::config('_cake_model_', array(     'engine'  => $engine,         'servers' => array(                     $memcacheserver // localhost, default port 11211         ),     'prefix' => $prefix . 'cake_model_',     'path'   => cache . 'models' . ds,     'duration'   => $duration,         'persistent' => 'my_connection' )); 

when save, in cases, do

 cache::cleargroup('available.prod.cats');             cache::cleargroup('available.prod.cats');             cache::cleargroup('this.user.catalogs'); 

what happens cake seems delete cached models related aro , aco models. why?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -