急求smarty缓存有关问题解决方案

WBOY
Release: 2016-06-13 13:47:43
Original
809 people have browsed it

急求smarty缓存问题解决方案
我在smarty模板里引入了其他的模板,比方说引入了a.html文件,结果smarty缓存不起作用了,每次访问都刷新,如果我不引入a.html文件就没什么问题,谁能知道这是怎么回事?该怎么解决啊

------解决方案--------------------
这里牵扯到smarty的运行机制,我就不多解释了。

在引用这个界面的时候不要 使用include
要使用insert

比如

这样就可以解决缓存的问题了。

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!