It seems that all the modern browsers support redirect caching. When you're browsing around the intarwebs this makes sense. When you're developing a site, however, and testing 301 and 302 redirects, this becomes a hurdle which you must overcome.
Using Internet Explorer (I'm on version 9) Developer Tools, the "clear cache" button doesn't quite do the job! Cached Redirects are not removed. If you download and install Fiddler, though, there's a "clear cache" option that does a more complete cleanup.
Hopefully you didn't spend hours trying to track down in your code a redirect that wasn't there to begin with!
Here's an article that describes it: http://www.sadev.co.za/content/redirected-down-one-way-clearing-internet-explorer-host-redirect-cache.
Showing posts with label cache. Show all posts
Showing posts with label cache. Show all posts
Thursday, October 27, 2011
Tuesday, January 11, 2011
Clearing the Cache for Wordpress RSS feeds
I received an e-mail from one of the websites that I administrate. The request was for a news article/blog post to be displayed on the homepage. This particular news item was time-sensitive and the Wordpress caching system was delaying publication of the news item through the RSS feed.
After a bit 'o searching, I found the the offending code. Previously, in another blog, I had modified the like in rss.php, but that did not work.
This line was in a function called fetch_feed($url) in the file feed.php inside the wp-includes folder.
$feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 600, $url));
The original cache time was 43200, but I wanted 10 minutes, so I used 600. I saved and refreshed the page, with success.
After a bit 'o searching, I found the the offending code. Previously, in another blog, I had modified the like in rss.php, but that did not work.
This line was in a function called fetch_feed($url) in the file feed.php inside the wp-includes folder.
$feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 600, $url));
The original cache time was 43200, but I wanted 10 minutes, so I used 600. I saved and refreshed the page, with success.
Subscribe to:
Posts (Atom)