Whats the best way to manage keys (in memcache ) to prevent stale cached values?

前端 未结 6 1582
忘了有多久
忘了有多久 2021-01-30 15:01

Ive recently implemented memcache on my site which has been under heavy mysql load (mysql was as optimized as I could make it). It solved all my load issues, and site is running

6条回答
  •  情深已故
    2021-01-30 15:50

    Memcached::set has an expire parameter. Perhaps you can let this default to an hour, but for the pages that return search results - or in your forum, you can set this to a shorter period of time.

提交回复
热议问题