WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Overzealous deletions of the APC opcode cache (2 posts)

  1. Tonohono
    Member
    Posted 4 years ago #

    Running 0.9.1

    This plugin is quite overzealous when clearing the APC opcode cache, specifically APC's "User Cache Entries". It clears the entire user cache, not just those created by the plugin (those prefixed with w3tc_).

    This behavior is detrimental to the other applications on my server which use APC's user cache.

    I enjoy using this plugin, but this behavior is a deal breaker, so I hope it will be remedied quickly.

    I'm comfortable applying any patches you provide to remedy this issue.

    Thanks!

  2. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    This was visited a year ago when I decided to release my work. The problem is that apc_clear() doesn't allow removal of only specific keys. Also, the TTL value for user objects will eventually remove those stored objects anyway. So what remains is to loop over objects (which take an unknown amount of time and also may not be compatible with other object caches.

    Do you happen to know how other opcode caches behave? What is an elegant implementation to iterate through an unknown sized data set to purge objects? I see lots of problems with these issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic