Late Caching for Feeds

Implements a late caching mechanism for the built-in WordPress RSS parser.

Author:Michael Uno (miunosoft) (profile at wordpress.org)
WordPress version required:3.5
WordPress version tested:4.9.25
Plugin version:1.0.2
Added to WordPress repository:29-10-2018
Last updated:02-11-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/michaeluno/0-delay-late-ca...
Total downloads:1 813
plugin download
Click to start download

What is Late Caching?

Have you ever felt that a page having RSS feeds loads relatively slow when it renews their caches?

The current implementation of the WordPress built-in feed caching mechanism renews the cache during the page load when it is expired. When this happens, it takes some time to load while the server accesses the external feed source. This is noticeable for site visitors in most cases and they may leave the site unless they are patient enough.

What this plugin does is to put off the refresh process and to make it done later in the background process.

Immediate Caching (WordPress Default Behavior):

  1. A page loads and detects a feed is expired.
  2. Fetches new contents of the feed.
  3. Displays them.

The step 2 above takes time and noticeable to the viewer.

Late Caching:

  1. A page loads and detects a feed is expired.
  2. Schedules a cache renewal event in the background.
  3. Displays the expired contents.
  4. The cache gets renewed in the background and the updated contents are displayed in the next page load.

1.0.2 – 2018/11/02

  • Fixed a bug with multiple feed urls passed to fetch_feed().

1.0.1 – 2018/10/30

  • Fixed redundant function calls.

1.0.0 – 2018/10/29

  • Released initially.

FAQ