Timeline for Where does WordPress default SimplePie save cache data?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 31, 2012 at 1:26 | comment | added | Ryan McCue |
If you're using it in your plugin, you do want to use set_cache_class() and set_file_class() there, not set_transient
|
|
Aug 30, 2012 at 21:56 | history | edited | Otto | CC BY-SA 3.0 |
edited body
|
Aug 30, 2012 at 19:23 | vote | accept | Teno | ||
Aug 30, 2012 at 19:23 | comment | added | Teno |
As I test with my custom class extending the default WordPress SimplePie class, in addition to the above methods, set_cache_class('WP_Feed_Cache') and set_file_class('WP_SimplePie_File') , set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', $cacheduration, $url)) works fine without errors.
|
|
Aug 30, 2012 at 18:57 | comment | added | Teno | Do you mean I should use set_transient() separately from SimplePie? Or are you suggesting that I should implement the function into the custom extended class? | |
Aug 30, 2012 at 18:49 | history | edited | Wyck | CC BY-SA 3.0 |
added 4 characters in body
|
Aug 30, 2012 at 18:49 | comment | added | Wyck |
You should use set_transient described in the link above.
|
|
Aug 30, 2012 at 18:30 | comment | added | Teno |
Thanks for the info. I looked into the source in feed.php and there are lines $feed->set_cache_class('WP_Feed_Cache'); $feed->set_file_class('WP_SimplePie_File'); It looks these are the ones setting a transient. I have a custom class which extends SimplePie which WordPress includes. In that case, can I just use these methods and simply pass the words, WP_Feed_Cache and WP_SimplePie_File?
|
|
Aug 30, 2012 at 17:58 | history | answered | Otto | CC BY-SA 3.0 |