WordPress.org

Ready to get started?Download WordPress

Forums

Q about wp_object_cache (2 posts)

  1. jeffb0
    Member
    Posted 5 years ago #

    My problem is that when I add some data to the object cache, it doesn't show up when I print_r( $wp_object_cache ); ... Now I'm somewhat new new PHP, but I can successfully list all other objects in the cache, just not my data (maybe it's not SUPPOSED to be in there??).

    I know my cache data is working because the queries are reduced incrementally as I add more and more objects to the cache.

    My function to add looks like this:

    wp_cache_add( 'foo2_options', $var, 'options2_foo' );

  2. jeffb0
    Member
    Posted 5 years ago #

    Heh, maybe I should have just asked:

    Should I be able to see the data I add to the wp_object_cache when I do a print_r( $wp_object_cache ); ? :)

Topic Closed

This topic has been closed to new replies.

About this Topic