做了rewrite
url:http://app.finance.ifeng.com/fund/zjjz
程序:
/data/htdocs/app_finance_ifeng_com/fund/jjjz_kfjj.php?oper_codei=1102&type=10200&menuIndex=0
cache部分代码如下:
if(!$smarty->is_cached("jjjz_kfjj.tpl", $_SERVER['REQUEST_URI'])) { ... } $smarty->display("jjjz_kfjj.tpl", $_SERVER['REQUEST_URI']);
cache文件路径:
/data/tmp/smarty/~fund/cache/%2Ffund%2Fzjjz^%%60^606^6062E13F%%jjjz_kfjj.tpl
$smarty->cache_dir设置:
"{$smarty_base_dir}/{$sub_dir}/cache".str_replace('/','~', dirname($_SERVER['PHP_SELF']))
在做了rewrite之后,发现cache有覆盖现象,
解决这个问题,关键的2个参数不要重复:
cache_id,cache_dir