Title: Q about wp_object_cache
Last modified: August 19, 2016

---

# Q about wp_object_cache

 *  [jeffb0](https://wordpress.org/support/users/jeffb0/)
 * (@jeffb0)
 * [17 years ago](https://wordpress.org/support/topic/q-about-wp_object_cache/)
 * 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’ );

Viewing 1 replies (of 1 total)

 *  Thread Starter [jeffb0](https://wordpress.org/support/users/jeffb0/)
 * (@jeffb0)
 * [17 years ago](https://wordpress.org/support/topic/q-about-wp_object_cache/#post-1091592)
 * 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 ); ? 🙂

Viewing 1 replies (of 1 total)

The topic ‘Q about wp_object_cache’ is closed to new replies.

## Tags

 * [object-cache](https://wordpress.org/support/topic-tag/object-cache/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jeffb0](https://wordpress.org/support/users/jeffb0/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/q-about-wp_object_cache/#post-1091592)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
