Home  >  Article  >  Backend Development  >  一直不太理解为何用了smarty还要用memcache~

一直不太理解为何用了smarty还要用memcache~

WBOY
WBOYOriginal
2016-06-13 12:34:20762browse

一直不太理解为什么用了smarty还要用memcache~~~~
都说smarty + memcache配合用是很好的优化组合,但我不明白为什么用了smarty还要用memcache~
因为smarty不是有页面缓存吗,比如现在有个页面A,我规定它缓存的时间是10分钟,那它只要每十分钟逻辑运算一次就可以了。还要memcache有什么用呢?

能给我举个小例子说明smarty和memcache在什么情况下配合使用吗?

谢谢各位!

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