首页
> 网站建设 > ECshop外贸建站 > ecshop彻底禁止缓存
ecshop彻底禁止缓存
外贸建站
ECshop外贸建站
1147
ecshop彻底禁止缓存:
1.关闭SMARTY的缓存:
打开includes/cls_template.php,找到下面一段
if (file_put_contents($this->cache_dir . ‘/’ . $cachename . ‘.php’, ‘<?php exit;?>’ . $data . $out) === false)
{
trigger_error(‘can\’t write:’ . $this->cache_dir . ‘/’ . $cachename . ‘.php’);
}
将这一部分注释掉即可,改成
/*
if (file_put_contents($this->cache_dir . ‘/’ . $cachename . ‘.php’, ‘<?php exit;?>’ . $data . $out) === false)
{
trigger_error(‘can\’t write:’ . $this->cache_dir . ‘/’ . $cachename . ‘.php’);
}
*/
2.关闭SQL查询结果缓存
打开includes/cls_mysql.php
找到
var $max_cache_time=3600;//最大的缓存时间,以秒为单位
改为
var $max_cache_time=0;//最大的缓存时间,以秒为单位