The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How can I use the object cache? (3 posts)

  1. simplemedia
    Posted 7 years ago #

    Hi all,

    I'm trying to use the WP object cache, but can't figure it out:

    I'm trying to store some information I'm grabbing via an API, so I don't have to hit the API every page load.

    It appears that the capabilities of the built-in cache changed with WordPress 2.5? I've read a few things, but can't figure out where things stand right now:


    I followed the Codex instructions perfectly I think, I don't get any errors, but it is not caching my information from page load to page load.


    Any help would be appreciated!


  2. simplemedia
    Posted 7 years ago #

    To follow up more on this...

    By using the Cache Inspect plugin, I can see some test info that I've thrown into the cache. But I still can't retrieve it successfully...

  3. simplemedia
    Posted 7 years ago #

    After some more tries, I was able to get the Object Cache to work on my shared hosting account with the plugin linked here:


    This blog post helped too:

    The object cache documentation (http://codex.wordpress.org/Function_Reference/WP_Cache) doesn't talk about the changes that were made with 2.5, I still don't totally understand what functionality remains and what got taken out. But this plugin got me up and running.


Topic Closed

This topic has been closed to new replies.

About this Topic