How do I implement a HTML cache for a PHP site?

前端 未结 8 1131
情深已故
情深已故 2020-12-14 22:49

What is the best way of implementing a cache for a PHP site? Obviously, there are some things that shouldn\'t be cached (for example search queries), but I want to find a go

8条回答
  •  醉酒成梦
    2020-12-14 23:18

    Simple caching of pages, or parts of pages - the Pear::CacheLite class. I also use APC and memcache for different things, but the other answers I've seen so far are more for more complete, and complex systems. If you just need to save some effort rebuilding a part of a page - Cache_lite with a file-backed store is entirely sufficient, and very simple to implement.

提交回复
热议问题