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
04 May, 2022 08:42 PM | Add Ken Burns Effect | |
21 Apr, 2022 10:08 AM | Individual Slides Stack & Text is Piled Up | |
12 Apr, 2022 07:22 AM | Change Tabs not show slide | |
07 Apr, 2022 11:58 PM | Issue with slider responsiveness and captions too | |
31 Mar, 2022 05:35 AM | Top padding/margin won't go away! |