Caching data in PHP

前端 未结 4 1733
我在风中等你
我在风中等你 2021-02-09 03:05

I\'m developing a site in PHP which has some complex SQL queries and I would like to implement a caching feature to reduce the load on the database.

I\'m just wonderin

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-09 03:46

    Use any of these for caching backends:

    • http://php.net/manual/en/book.apc.php
    • http://memcached.org/
    • http://xcache.lighttpd.net/

    and use Zend_Cache for a unified interface to them

    • http://framework.zend.com/manual/en/zend.cache.html

    Whether to use full page caching or partial caching depends on your specific UseCases. Usually, your application will have a mix of both.

提交回复
热议问题