Home → Knowledge Base → WordPress RoyalSlider FAQ →
[WP] How to clear or modify cache
By default slider refreshes cache based on a value in option "Cache refresh time" (on slider "Settings" page), so slides are updated at a fixed interval in hours. To disable it set the option to 0
.
If you wish slider to update when you save post, or during any other action, add such code to your theme functions.php (Instead of 123
there should be ID of your posts slider):
function rs_clear_cache() {
delete_transient( 'new-rs-123' );
}
add_action( 'save_post', 'rs_clear_cache' );
Please note that "gallery" type of slider (that overrides [gallery] shortcode) has caching disabled.
- Section:
- WordPress RoyalSlider FAQ
- Last Updated:
- 15 Mar, 2017 07:04 AM
Sending your feedback
Thank you!
- [WP] How to install slider plugin to WordPress?
- [WP] Slider looks correctly in preview, but when I add it to site it doesn't work
- [WP] Admin area isn't working
- [WP] How to change background of slider
- [WP] Why slider looks a bit different when embedded to site
- [WP] How to open full slide link in new window?
- [WP] How to upgrade from old (v2 and less) to New RoyalSlider
- [WP] How to clear or modify cache
- [WP] Image thumbnails are blank
- [WP] How to get Instagram "client ID" and "client secret key"?
Recent Discussions
26 Jan, 2021 03:33 PM | Renewal | |
24 Jan, 2021 05:17 AM | description | |
14 Jan, 2021 06:36 PM | New Problem | |
11 Jan, 2021 02:20 PM | WordPress 5.6 broke the slider | |
09 Jan, 2021 03:44 PM | Return to first slide instead of scrolling all the way back |