http://www.exgear.jp/blog/2008/11/method_cache_behavior/ http://d.hatena.ne.jp/lifegood/20090604/p1 こちらを元ネタにして 若干改良をほどこしました。 1.CacheBehaviorの導入 class CacheBehavior extends ModelBehavior { var $enabled = true; var $config = array(); function setup(&$model, $config = array()) { $this->config[$model->alias] = $config; } //config設定 function _setConfig(&$model,$config = null){ if(empty($config)){ $conf
![おもいついたら書く日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/126e9c63960837b5815901e11e1f6c1303c17f2b/height=288;version=1;width=512/https%3A%2F%2Fblog.seesaa.jp%2Fimg%2Fogp_logo.png)