• The wp_cache_get API has 2 parameters that are not presently being handled in the W3TC ObjectCache implementation. Other plugins and possibly WP depend on these parameters. Not properly implementing the current API could break or at least erode performance of WP and/or plugins.

    Please see:

    https://codex.www.ads-software.com/Function_Reference/wp_cache_get

    The missing parameters are $force, and $found.

    Specifically, $found causes problems for me, specifically with the WPML plugin.

    $found should be set by the ObjectCache plugin. WPML (and other plugins I would assume), test this variable to see if the lookup value was actually found in the cache. Usually, if $found is false, this means the expensive query is done, and the result is stored in the cache.

    Currently, $found is always false, which means the query is done all the time and performance is eroded.

    I think setting $found properly when the Object Cache is being used, would increase performance when the W3TC Object cache is being used.

    Thanks,
    Rich

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 3 replies - 16 through 18 (of 18 total)
  • @willie,

    Yes, thank you and it is good to see it – just saying that many of us hope it won’t be 8 months again until the next one…

    As voiced by others above, generally it would seem better to issue more frequent releases with somewhat fewer updates & changes in each one.

    That’s the trend in software these days (including WP itself), which can also make upgrades easier, safer, and more iterative.

    I probably do not stand alone saying I would love to see a minor 0.9.4.1 version out later this spring that does nothing but fix bugs & issues and makes 0.9.4 more solid and useful.

    Thanks!

    @roam92: Thanks for the feedback.

    Thread Starter awhig

    (@awhig)

    Hi,

    I forgot to mention that w3-total-cache/wp-content/object-cache.php has to also be updated with the new function parameters as well. This file then gets copied into the wp-content folder of the site, to activate object caching.

    Rich

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘ObjectCache API is out of date. This breaks other plugins’ is closed to new replies.