The best way of PHP Caching

后端 未结 3 1076
囚心锁ツ
囚心锁ツ 2021-01-15 20:44

Currently, I am trying to write a software about ecommerce. My data is usually just MySQL queries. For instance language variable results (err_no_cat =>

相关标签:
3条回答
  • 2021-01-15 20:53

    memcache is a pretty common solution. Facebook and some other big names use it. It can be very fast.

    http://php.net/manual/en/book.memcache.php

    0 讨论(0)
  • 2021-01-15 21:03

    use APC if your app is using single server - you can use it as opcode and regular key=>value cache.

    use memcached only if you have multiple servers and you need cache to be available to all of them - that's the point of distributed cache.

    Remember that APC is about 6 times faster then memcached.

    0 讨论(0)
  • 2021-01-15 21:18

    apc

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