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)
Viewing 1 replies (of 1 total)
- The topic ‘Q about wp_object_cache’ is closed to new replies.