开发者

drupal cache clear issue

开发者 https://www.devze.com 2023-02-11 10:37 出处:网络
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.

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

精彩评论

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