Home  >  Article  >  Backend Development  >  急求smarty缓存有关问题解决方案

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

WBOY
WBOYOriginal
2016-06-13 10:07:31772browse

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

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

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

比如

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

Statement:
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