drupal entitycache 性能问题
Entity cache 能提高性能, 把drupal 的entity 缓存起来, 但是不能跟memcache 和redis 一起用, 不然一删除一个node, 就会清空所有的缓存
?
Entity cache puts core entities into Drupal's cache API.
Due to the entity loading changes in Drupal 7, no core patches are required.
Don't bother using this module if you're not also going to usehttp://drupal.org/project/memcache?or?http://drupal.org/project/redis?- the purpose of entitycache is to allow queries to be offloaded from the database onto alternative storage. There are minimal, if any, gains from using it with the default database cache.
?
代码如下
?
entity_get_controller('node')->resetCache();会清空所有cache