[wp-hackers] Clearing Feed Cache?

Dougal Campbell dougal at gunters.org
Thu Jul 15 16:54:35 UTC 2010


On Jul 15 2010 3:09 AM, Frank Bueltge wrote:
> add_filter( 'wp_feed_cache_transient_lifetime', create_function( '$a',
> 'return 1800;' ) );
>
> use this filter to set a new time for the cache.
> more also in my post: http://wpengineer.com/feed-cache-in-wordpress/
>
> Best regards
> Frank

If you want to only change the cache lifetime for a particular feed, you 
can use URL matching like I demonstrated here:

   http://dougal.gunters.org/blog/2010/05/20/quick-tip-faster-wordpress-news

-- 
Dougal Campbell <dougal at gunters.org>
http://dougal.gunters.org/
http://twitter.com/dougal
http://twitual.com/


More information about the wp-hackers mailing list