Home > Backend Development > PHP Tutorial > smarty 分页因缓存出有关问题

smarty 分页因缓存出有关问题

WBOY
Release: 2016-06-13 10:03:15
Original
1048 people have browsed it

smarty 分页因缓存出问题
smarty我开了缓存,结果 当page=1时显示正常 当下一页page=2时还是第一页的内容 若把smarty的缓存功能关了,就能正常翻页了, 怎么处理啊?

------解决方案--------------------

探讨
我搞定了!这样加个cache_id就可以了.$smarty->display($"list.htm",$my_cache_id);

------解决方案--------------------
呵呵,那就接分
------解决方案--------------------
可以理解成清除缓存!
------解决方案--------------------
up!!
------解决方案--------------------
这清理缓存的方法 还挺别致。
------解决方案--------------------
有参数的缓存页面是要价格 cache_id的,smarty手册上讲的很清楚。
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