Hi WordPress lovers!
I’m just curious, is the WP_Cache class and its functions still working in 2.8.4? I’m creating a simple function for my theme, used for retreiving attachments. The function wp_cache_add returns true and the cache is there (saw it using var_dump()). But on every page-load the cache disappears, even if I define the cache-time to 1800 (half an hour). So is WP_Cache still working or not?
Since WP 2.5, WP_Cache doesn’t support persistent cache across page views by default. To do this with object based cache you need to implement something like batcache with memcached. Checkout this great description on the wphackers mailing list .
Depending on how you need to cache data it may be possible to use the new Transients api which is available as of 2.8 .
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘WP_Cache works in 2.8.4?’ is closed to new replies.