[wp-hackers] Confusion About WordPress Cache
xiaohan2012 at gmail.com
Fri Dec 17 14:42:16 UTC 2010
I am using WordPress Cache to cache data retrieved from database, using
After I used wp_cache_set to set some data in the cache, I try to get it by
wp_cache_get in ANOTHER post request.
However, it failed to retrieve the data I have previously saved.
It is ok if I try to retrieve the data in just one request(place the *set*and
*get * in the same script). *However, in separate *
*requests, I doesn't work.*
I wonder if I got the wrong idea of what *cache* is. I have it in mind that
*cache *can be preserved even in different requests
from the same user.*Then the cache has nothing different with a variable, I
And I am doubting my idea now!
Can anyone help? Or it is not what I am thinking. *Is there any way to
retrieve the same data which has been saved *
*before(not using database) in separate requests? *
Really thanks for any response!
More information about the wp-hackers