请高手看下我的smarty缓存配置哪里错了

我在测试缓存时,配置缓存目录为/caches,测试时缓存也能正常运行,但是在缓存目录下没有生成相应的缓存文件,不知道是什么原因。smarty配置代码:<?phpinclu... 我在测试缓存时,配置缓存目录为/caches,测试时缓存也能正常运行,但是在缓存目录下没有生成相应的缓存文件,不知道是什么原因。
smarty配置代码:
<?php
include_once("smarty/smarty.class.php");
$smarty=new smarty();
$smarty->config_dir="smarty/Config_File.class.php";
$smarty->cache_dir="./caches";
$smarty->caching=true;
$smarty->cache_lifetime=60;
$smarty->template_dir="./templates";
$smarty->compile_dir="./templates_c";
$smarty->cache_dir="./smarty_cache";
$smarty->left_delimiter="{";
$smarty->right_delimiter="}";
?>
展开
 我来答
清纯mm
2011-04-23 · 超过24用户采纳过TA的回答
知道答主
回答量:49
采纳率:0%
帮助的人:0
展开全部
从你的代码来看你的缓存文件应该会是smarty_cache文件夹中。
因为你定义了两个$smarty->cache_dir所以会执行第二个,配置缓存文件就不会在/caches文件夹下。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式