Home > Backend Development > PHP Tutorial > php-一个smary的简单问题哦

php-一个smary的简单问题哦

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:33:31
Original
1042 people have browsed it

phpsmarty

$smarty = new Smarty;

$smarty->force_compile = true;
$smarty->debugging = true;
$smarty->caching = true;
$smarty->cache_lifetime = 120;
if(!$smarty->isCached('index.tpl')){
echo 'no cache';

} else {
echo 'cache';
}
$smarty->display('index.tpl');

请教一下,为什么我这样设置每次都是 no cache.
在我的cache目录下己经生成了缓存文件。

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template