WP Rocket is one of the most popular caching plugins available for WordPress. It breaks the traditional rules of having hundreds of options and provides users with an easy-to-use interface. You can speed up your website in minutes just by switching options.

However, the plugin does not provide any options on the front end to disable page caching or bypass settings for specific pages. In this article, we will explain how to bypass WP Rocket cache in WordPress using various methods.

Bypass WP Rocket cache

While caching can help users load pages quickly, it can create problems when you perform certain activities. Here are some common scenarios where you might want to bypass WP Rocket’s cache:

You want to test your page speed score in the Google PageSpeed ​​Insights tool with and without the WP Rocket plugin. You might also want to see how many CSS or JS files are loaded without caching or do a similar analysis.

Just want to disable WP Rocket cache on some pages. For example, WP Rocket will not work with WooCommerce and GeneratePress themes and make store pages unresponsive. You need to disable WooCommerce styling on small screens to fix this

You want to disable WP Rocket’s automatic page-level caching without any option to disable it on the frontend.

Depending on the situation, you can bypass WP Rocket cache by following one of the options below. In most cases, you may need to disable plugins at the site-wide or page level instead of bypassing them. Therefore, we will explain the available options for disabling and bypassing without deactivating.

1. Completely disable plugins

An easy-to-use option is to simply disable the plugin on your website. You can complete the test and then reactivate. The good part is that the plugin will keep all your previous settings. However, disabling plugins entirely is not a viable solution every time you want to test something simple.

Remember, you should deactivate the plugin when you want to test compatibility or want to test another cache plugin. For example, if you want to test W3 Total Cache, then deactivate WP Rocket before installing the W3 Total Cache plugin. These cache plugins will add plugin files like advanced-cache.php which may conflict with each other when both plugins are active. As a result, your website will show a white screen of death or the cache will not work.

Go to the “Plugins” section in your WordPress admin panel and click the “Deactivate” link under the WP Rocket plugin. Click the “Skip & Deactivate” button to temporarily deactivate the plugin without deleting cached content.

2. Disable plugins on specific pages

Most WordPress business themes offer page builder integrations such as Elementor and Visual Composer. Caching can have real problems when using heavy JavaScript on a page with a page builder plugin. Elements like dynamically animated charts and jQuery data tables may not work well with aggressive caching plugins like WP Rocket. The best solution is to disable the WP Rocket cache on pages that have problems with caching.

Go to Articles or Pages and find your article in Gutenberg Editor and edit it.

WP Rocket will add a meta box to the editor that you can use to change global behavior. If you don’t see the meta box in the sidebar, click the three-dot button and select Preferences. Go to the “Panels” section and enable the “WP Rocket Options” meta box.

3. Clear the cache of a specific page

Similar to excluding pages, you may also want to simply delete the cache on certain pages. By default, WP Rocket will clear the cache whenever you change the content of the page and publish it again. However, in some cases, clearing may not work, such as when you change categories from the article index page or use a third-party tool to change content outside the editor. Regardless, we recommend clearing the cache for that particular page before sharing the URL or submitting it in Google Search Console.

Go to the Articles section and find the page you want to delete the old cache for.

Hover over the header link and click the “Clear this cache” option.

This will delete the old cache and when the page is accessed again, WP Rocket will cache the new content.

4. Exclude pages from cache

If you don’t want to exclude pages by going to the editor, you can also exclude from the plugin’s settings. The advantage of using settings is that you can use different options like regular expressions or restrict access to cached pages for specific user agents. You can ignore page caching by going to the Settings > WP Rocket menu and navigating to the Advanced Rules section.

5. Bypass WP Rocket cache without deactivating

Sometimes, you want to test multiple pages bypassing the cache without deactivating the plugin.

Just add the ?nowprocket parameter and the URL of the page you want to test accessing uncached pages to bypass WP Rocket’s cache.

This is the best way to bypass WP Rocket cache and run a compatibility test to check page speed. However, this will not bypass caching rules applied via htaccess files. For example, WP Rocket will apply htaccess directives for browser caching and GZIP compression, which may still work when bypassing ?nowprocket queries.

6. Disable page-level caching

The last option is to permanently disable page-level caching on the entire site or on specific pages. This is not desirable because page caching is important for speed. However, in some cases you may need to do this if you have another page caching plugin that conflicts with WP Rocket’s settings. For example, SiteGround offers automatic static cache caching (plus browser caching and GZIP compression) as well as Nginx direct delivery options from a hosting account. We have confirmed with the WP Rocket support team that WP Rocket on the SiteGround setup works without any conflicts.

Summary

As you can see, bypassing WP Rocket cache in your WordPress site by adding parameters to your URL is a simple task. You can also exclude individual pages from the plugin’s global settings or from the editor meta box. However, disabling page caching entirely or on specific pages is a tricky task that requires a plugin to help. Make sure to choose the right method for your needs to get the right results.

Recommended reading:

How long are Fouad WhatsApp chats?

Nice to meet you, brand new FA WhatsApp

Leave a Reply

Your email address will not be published. Required fields are marked *