• I was having a quick look at the advanced-caching plugin:

    https://www.ads-software.com/extend/plugins/advanced-caching/

    At first, I couldn’t see any drop in database queries, so I did a little digging, and it seems that wherever wp_cache_set is called, the post data is never actually set. (ie. the get function always returns nothing)

    I then found the cache stats() function, and it was reported that there were 89 “cache misses”, where the database had to be used to get the data. No matter how many times I refresh, that number remains constant.

    Since I’m ignorant as to how it works exactly, I might have overlooked something, but I can’t understand why the cache isn’t being set with this plugin. Is there anything I can do to test this issue further, or find the cause of the problem (if there is one)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Add the following line to your wp-config.php file:
    define('ENABLE_CACHE', true);
    And make sure yourwordpressdir/wp-content/cache/ directory is writable by the web server.

    Thread Starter simon1

    (@simon1)

    Cache directory is writable, and ENABLE_CACHE defined in wp-config.

    I should have mentioned in the original post that the debug stats revealed that around 280 items were in the “warm cache”, proving that the cache is enabled.

    The core wordpress code in wp-includes/cache.php also disables caching if PHP safe_mode is on. Aside from that, I made the other changes, and I can get the “dumpit” function to show the SQL used for the post request, but I can’t get the cache to hit.

    Frankly, I can’t tell if this plugin does anything or not…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Advanced Caching, Cache Misses?’ is closed to new replies.