Where does WordPress default SimplePie save cache data? I could only find relevant info about cache durations but not the location. SimplePie has a method called set_cache_location()
but I cannot find it being used in WordPress.
I’m writing a plugin and if a cache folder is available already by default, I’d like to use it rather than creating for my plugin.
Does anybody know it?
In WordPress, the
WP_Feed_Cache
class uses theWP_Feed_Cache_Transient
class to store the results into a transient.So, short answer, either in the database or in the Object Cache if you have a persistent object cache stored.
If you need to cache something for a period of time, use a transient.
http://codex.wordpress.org/Transients_API