[英]Cache problems in Drupal7
I have a custom block that has cache disabled. 我有一个已禁用缓存的自定义块。 However, when I make any change in content, that action has not result.
但是,当我对内容进行任何更改时,都不会执行该操作。 The content doesn't show changes until I refresh the cache.
在刷新缓存之前,内容不会显示更改。
Any suggestion, please? 有什么建议吗?
use this - 用这个 -
if ($op == 'list') {
$blocks[0]['info'] = t('My custom block');
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.