Search results for helper plugin

261 articles found

  • Prevent Critical CSS Generation for Custom Post Types and Taxonomies

    When using Load CSS Asynchronously, you may see errors when trying to generate CSS for custom post types (CPT) and taxonomies that are not publicly accessible. In this case you can exclude them from

  • Enable caching for the WP REST API

    REST API requests are not cached by default, but you can enable it with the following helper plugin. 📥 Download (.zip): WP Rocket | Cache WP Rest API Developers: You can find the code for this

  • Enable cache for RSS feed

    WP Rocket doesn't cache RSS feed by default. However, if you need to, you can enable RSS caching with the following helper plugin: 📥 Download (.zip): WP Rocket | Cache RSS feed Developers: You can

  • Disable Load CSS Asynchronously on Mobile

    If the Load CSS Asynchronously feature is causing layout issues on the mobile version of your site you can disable this feature for mobile devices only while keeping it for the desktop version.

  • Exclude Uploaded Elementor CSS from Load CSS Asynchronously

    In some cases the option Load CSS Asynchronously may conflict with files created dynamically by Elementor in the uploads/elementor/css folder. If that problem arises specific files can be excluded

  • Multiple configuration files for WP Rocket

    WP Rocket writes an important PHP configuration file inside /wp-content/wp-rocket-config/your-website.com.php. The filename is created following the same domain you are using on your WordPress

  • Adding Custom Rules to the htaccess File

    When you change or save WP Rocket's settings, the htaccess file is regenerated. WP Rocket always places its rules at the very top of the file, so if you had any custom rules there, they will get

  • Remove X-Powered-By: WP Rocket header

    If you'd like to remove the x-powered-by: WP Rocket header from your website, you can install the helper plugin below. 📥 Download (.zip): WP Rocket | Remove X-Powered-By: WP Rocket from headers

  • Remove expires (mod_expires) rules from .htaccess file

    On some occasions, you may want to disable the expires rules WP Rocket is adding in the .htaccess file. You can prevent WP Rocket from adding those rules by installing the following helper plugin. 📥

  • Choose YouTube Preview Image Resolution

    If you are using the LazyLoad sub-option Replace YouTube iframe with preview image, you can specify the resolution of the preview thumbnail using the helper plugin available in this article. Heads

  • Disable use of the htaccess file by WP Rocket

    In some server environments you may not have permissions to modify the htaccess file. To prevent unnecessary warnings, or for any other compatibility reason, you can prevent WP Rocket from trying to

  • Disable Page Caching

    In rare cases you may want to completely disable WP Rocket’s automatic page caching feature, but keep using other features such as minifying and combining files, LazyLoad, CDN, cache preload, and

  • Disable Page Caching on all pages except for the selected URLs

    This helper plugin will disable WP Rocket’s page cache while preserving other optimization features on all pages except for the selected URLs. 📝 Manual code edit required before use! 📥 Download

  • Logged-out cache displayed to logged-in users

    If you have a site where users log in to view content, there can be cases where the logged-out page is shown to logged-in users, or vice versa. Please check the following: Are you using an additional

  • Fixing non-www Redirection

    Not having the correct redirects in place for the various versions of your domain can cause problems. There are a few ways to set up these redirects. ⚠️ After implementing any of the following

  • Remove Custom Post URLs from purge

    This helper plugin will remove a custom set of URLs from WP Rocket’s automatic cache purging when a post is created / updated / deleted. It can help in cases where you are seeing these URLs show up

  • Disable Emoji optimization

    The Disable Emoji feature disables the emoji functionality to reduce the extra HTTP request linked to the emojis script, wp-includes/js/wp-emoji-release.min.js, that was introduced in WordPress 4.2.

  • Redirect HTTP to HTTPS

    If you have SSL enabled for your entire site, you will need to make sure that all links pointing to the HTTP version of your site will be automatically redirected to the HTTPS version. You may use

  • WooCommerce mini cart is cached and already has a product in it

    Problem When a visitor goes to your site for the first time, the mini-cart seems to be cached and already has an item (or items) in it. Visiting the Cart page itself shows there are no items in the

  • Force WebP replacement on more attributes

    WP Rocket's WebP Compatibility looks for images in specific attributes to replace them with the WebP version. If you have an image found in an unsupported attribute, you can force the WebP

  • Exclude a specific number of images from lazy loading by targeting an attribute

    Google PageSpeed recommends that anything resting above the fold shouldn't be lazyloaded. This can be done using our images and iframe exclusions box by targeting specific image names and classes. A

  • Extend add missing image dimensions feature

    By default, the Add missing image dimensions feature will not be applied on: Externally hosted images, i.e. not hosted on your own domain Images within <picture> tags It's possible to force the

  • Adjust LazyLoad Threshold

    By default, LazyLoad loads images that are within 300px of the viewport (browser window). However you can adjust this threshold with the following. In this example the threshold is set to 100px:

  • Programmatically toggle WP Rocket options under specific conditions

    If you need to programmatically deactivate or activate one of WP Rocket's options, you can use our pre_get_rocket_option_{option_name} filters. This can be particularly useful in some cases. Imagine

  • Customize Remove Unused CSS parameters

    Filters for High CPU caused by Remove Unused CSS You can change the number of URLs per batch, and the CRON interval of the Remove Unused CSS optimization. This might help to reduce the CPU usage in

  • Force Page Caching

    Introduction Most caching plugins for WordPress use a de facto standard to exclude pages from being cached: the DONOTCACHEPAGE WordPress Core constant. If defined as true during a request, WP Rocket

  • Prevent Static File Creation for Dynamic CSS/JavaScript

    WP Rocket has an automatically applied performance enhancement: CSS and JavaScript files loaded dynamically via PHP are automatically saved to static files to improve loading time. If this behavior

  • RSS feed doesn't update

    If your RSS feed is not updating immediately when you publish new podcasts or content, there are 2 features that may affect this: Page caching Browser caching Page caching WP Rocket automatically

  • Conditionally Disable Remove Unused CSS

    Sometimes you need to disable the Remove Unused CSS feature for groups of pages, based on their URLs slugs. For example, if you want to disable the optimization on all product pages which are using

  • Prevent inline styles from being removed by Remove Unused CSS

    By default, Remove Unused CSS will remove every stylesheet and inline styles after the optimization is applied. In some cases, you might want to preserve inline styles. You can exclude inline styles

  • Disable Remove Unused CSS For Specific Pages or Posts

    In some cases, you may need to disable the Remove Unused CSS feature on a specific page or group of pages.You have 2 options to achieve it: Using the WP Rocket Options meta box This is the simplest

  • Exclude all CSS files in a folder / directory from Load CSS Asynchronously

    In rare cases the option Load CSS Asynchronously may conflict with a set of files, specially when they are being dynamically generated by one of your plugins or your theme. If this option causes any

  • Redirection to Enforce/Remove Trailing Slash on URLs

    Note: As long as your canonical URLs are correctly set, Google will index the desired URL even without these fixes. Add a trailing slash for Apache If you need to enforce a trailing slash at the end

  • Disable Page Cache For Specific Pages and Posts

    In some cases you may need to disable the page cache feature on a specific page or group of pages and/or posts but you'd like to keep using the benefits of the optimization features such as LazyLoad

  • Disable Automatic Cache Clearing

    Automatic cache management is one of WP Rocket’s most elaborate features. We put a lot of thought into which actions performed on a WordPress site should make the plugin clear the entire site cache,

  • Create Different Cache Files with Dynamic and Mandatory Cookies

    In this Guide Filters for developers Helper plugin Why is the first visit not getting the cached page? Some plugins may be using cookies to set dynamic information about a user and differentiate

  • List of pre_get_rocket_option_{option_name} filters

    If you need to programmatically deactivate or activate one of WP Rocket's options, you can use WP Rocket's pre_get_rocket_option_{option_name} filters. This can be particularly useful in some cases

  • NGINX Configuration for WP Rocket

    WP Rocket will work out of the box on NGINX servers. While this configuration is not required, it provides the rules that would otherwise be present in the .htaccess file on Apache servers. Maxime

  • Optimize Google Fonts

    🚀 This feature is automatically enabled upon WP Rocket installation. In this Article About this optimization Updating from previous versions Deactivating Optimize Google Fonts Changing Google fonts

  • Chrome Native LazyLoad

    Chrome 76 introduced native lazy-load. This means that lazy-loading can be done by the browser itself instead of a plugin. At the moment, Chrome's implementation of native lazy-load is very

  • Font icons don’t show in IE 11

    If your icon fonts (e.g. FontAwesome) don’t display in Internet Explorer, you can probably fix this by installing this little helper plugin: 📥 Download (.zip):  WP Rocket | Remove ETag Developers: You

  • Caching the Search Page Results

    By default WP Rocket does not cache results of WordPress’ search functionality. In order to enable caching for search results, install the following helper plugin: 📥   Download (.zip):  WP Rocket | Ca

  • Exclude JS scripts from Delay JavaScript Execution only at some URLs

    This helper will allow you to exclude JavaScript files from Delay JavaScript Execution option only on specific pages instead of excluding them globally. This can be useful in some cases where you can

  • Customize Query String Caching

    Query strings are not cached by default but we do make some automatic exceptions which are detailed here: https://docs.wp-rocket.me/article/971-caching-query-strings It's possible to further

  • Resolve 500 Internal Server Error

    In this Article Debugging Backup .htaccess Fine Tune via Helper Plugin Reference: .htaccess Rules Increasing Memory Limit If there is one thing we’d hate to happen, it would be for you to install WP

  • Serve Pre-Compressed CSS/JS Files

    When file optimizations are applied, such as Minify/Combine CSS and JavaScript, WP Rocket creates 2 versions of each file: a standard CSS/JavaScript file, with the .css or .js extension a

  • Preload Links

    In this Article About this feature See preload links in action Automatic exclusions Manual exclusions Plugin compatibility About this feature Preloading links will improve the perceived loading time

  • Disable Page Caching For Logged-In Users

    If you find that the User Cache feature doesn't work for your site, because it's causing cache related issues, then it’s possible to disable the page cache feature for the logged-in users while

  • Can’t download PDF files when WP Rocket is active

    Your site is hosted by OVH and you offer PDF files for download on your site but when WP Rocket is activated, the PDFs cannot be downloaded anymore. This is an OVH specific problem and it is our

  • X-Cache MISS when WP Rocket is activated

    In WP Rocket's htaccess rules, we set an expires of 0 on the HTML document. This ensures that the browser does not store out-of-date content, so that the visitor will always see the correct content.