Yii Active Record的Query Cache
- $cache_ttl = 60;
- $cache_dependency = new CDbCacheDependency('SELECT MAX(update_time) FROM `post`');
- model()->cache($cache_ttl, $cache_dependency, 2)->findAll
转载于:https://blog.51cto.com/chinaphp/773567
Yii Active Record的Query Cache
转载于:https://blog.51cto.com/chinaphp/773567