开发者

drupal cache clear issue

I have the fetched data stored in a variable. This is set in the drupal cache. When i try to reset the cache using cache_clear_all it does not work.

$data = getdata();
cache_set($tableid, $data, 'cache', strtotime("midnight + 1 day + 1 hour"));

if(condition){
  cache_clear_all($tableid,'cache',true);
}

What could be the issu开发者_JAVA技巧e?


Well first, you are using cache_set() wrong, see http://api.drupal.org/api/drupal/includes--cache.inc/function/cache_set/6. But that might just be your example code.

You tagged it with memcached, are you using the memcache or cache_router module as backend? Have you checked the issue queue there?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜