Caching
Documentation › Caching
As WP Repo Releases interacts with external APIs, the plugin is highly dependent on external performance factors. To address this, WP Repo Releases employs a built-in cache to store API responses for a specified duration.
Due to this, there might be a delay between the time a new release is published and when it becomes visible on your website.
By default, WP Repo Releases sets the caching time to 300 seconds (5 minutes). This means that values are cached for 5 minutes from the moment they are retrieved from the external API.
What Get’s Cached
WP Repo Releases caches the HTML code of the rendered release list. However, it recognizes any changes in options. This means if you modify a block or shortcode setting, the cache is immediately flushed, and the new option becomes active right away.
How to Change Cache Settings
You can modify the cache duration by adding a custom hook. For more details, please refer to the hook documentation.
Manually Clear the Cache
If you’re experiencing issues, manually clearing the cache might be beneficial. To do this, navigate to the plugin settings in the sidebar under Tools > WP Repo Releases and click on “Clear cache”.