Drupal 6的缓存可以设置为禁用,正常或激进.我找不到Drupal 7安装的这些选项.只有一个按钮可以刷新所有缓存,但是对于我对模块或模板所做的每个更改都必须单击它.通过更改,我的意思是将一些HTML标记添加到模块或模板.
感谢mirzu的回应,我已经安装了devel模块,但它也不起作用.我这样看到我的更改的唯一方法是禁用和启用模块.
hello.module看起来像:
function annotate_menu() {
$items = array();
$items['hello'] = array(
'title' => t('Hello world'),
'page callback' => 'hello_output',
'access arguments' => array('access content'),
);
return $items;
}
function hello_output() {
header('Content-type: text/plain; charset=UTF-8');
header('Content-Disposition: inline');
return 'annotate';
}
Run Code Online (Sandbox Code Playgroud)
模板page-hello.tpl.php包含print $content;.
我通过访问该页面http://localhost/test/hello.
我正在使用Drupal 6.每次修改CSS文件时,我都需要清除缓存以查看更新的结果,这是浪费我的时间.有没有办法禁用缓存系统?