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

前端 未结 8 1024
情深已故
情深已故 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:22

    Project Gazelle (an open source torrent site) provides a step by step guide on setting up Memcached on the site which you can easily use on any other website you might want to set up which will handle a lot of traffic.

    Grab down the source and read the documentation.

    0 讨论(0)
  • 2020-12-14 23:23

    The PHP Smarty template engine (http://www.smarty.net) includes a fairly advanced caching system.

    You can find details in the caching section of the Smarty manual: http://www.smarty.net/manual/en/caching.php

    0 讨论(0)
提交回复
热议问题