Skip to content

v2.7.2 - Auto-refresh update cache after plugin update

Choose a tag to compare

@hummelmose hummelmose released this 07 Aug 13:30
· 7 commits to main since this release

WP VisitChart v2.7.2

Fix: Updates page cache doesn't refresh immediately after a plugin update.


Problem

The 24-hour GitHub release cache was time-based only, with no awareness of whether the plugin itself had just been updated. If you upgraded the plugin while the cache still had time remaining, the Updates page would continue showing stale status until the full 24 hours elapsed.


Fix

The installed plugin version is now tracked in a dedicated option (lstats_last_checked_version). Every time the release check runs, it compares this stored version against the current get_plugin_data() version. If they differ — meaning the plugin was just updated — the cached release data is cleared immediately and a fresh GitHub API call is made.

The Updates page now always reflects the actual installed version right after an upgrade, without waiting for the cache to expire naturally.


Upgrade

Download wp-visitchart.zip below and replace the existing plugin files. No database changes required.