WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: W3 Total Cache] suggestion for memcached (5 posts)

  1. incognito
    Member
    Posted 4 years ago #

    Instead of flushing the cache every x seconds, use revision numbers to the objects cached. This way the old items eventually just get deleted and only new objects are served.

    http://blog.leetsoft.com/2007/5/22/the-secret-to-memcached

  2. Frederick Townes
    Member
    Posted 4 years ago #

    Memcached is just a large hash table of entries, adding additional logic to such an elegant tool has proven in testing to provide diminishing returns. Memcached itself already has expiration logic and what it does natively is much faster than what is done programmatically.

    From that post:

    what we really need, is to cache all the required data to render a given public URL. Two requests to the same URL should always yield a cache hit given all input parameters being equal.

    Is essentially what is already done. The set of deflated, gzipped and plain html versions of a given document (page) are cached in memcached.

  3. incognito
    Member
    Posted 4 years ago #

    That wasn't the point of the article. They are saying caching pages is more efficient than caching objects, but you still have the problem of stale pages being served.

  4. Frederick Townes
    Member
    Posted 4 years ago #

    Indeed, W3TC is caching pages themselves.

    As far as dirty cache reads, as you likely know that's an issue to be mitigated with any caching mechanism, you have to use your judgement for the case your are dealing with.

  5. incognito
    Member
    Posted 4 years ago #

    I think there are significant benefits to using versioning. I started writing up a function for APC cache; just need to debug the thing cause i'm not very proficient at php.

Topic Closed

This topic has been closed to new replies.

About this Topic