Skip to content

Instantly share code, notes, and snippets.

@pacotole
Last active January 20, 2026 10:30
Show Gist options
  • Select an option

  • Save pacotole/3d501ee63b48ad4050881ae2a3b76d4d to your computer and use it in GitHub Desktop.

Select an option

Save pacotole/3d501ee63b48ad4050881ae2a3b76d4d to your computer and use it in GitHub Desktop.
WordPress debug bypass optimizers with a url query param

Optimizers

Some WordPress optimization plugins allow you to view the original page without applying optimizations to compare and check if it works correctly before applying them.

You can view the original page by adding a query parameter to the URL.

Note that the first parameter of the URL is preceded by "?" and subsequent parameters are preceded by "&".

Autoptimize

?ao_noptimize=1

https://example.com?ao_noptimize=1

WP Rocket

docs

?nowprocket

https://example.com?nowprocket

LiteSpeed

docs

?LSCWP_CTRL=before_optm

https://example.com?LSCWP_CTRL=before_optm

Perfmatters

docs

?perfmattersoff

https://example.com?perfmattersoff

Extra ball: Code Snippets

If your site breaks due to a snippet and you can't load the backend to disable it, you can use this parameter in the URL to disable all snippets.

&snippets-safe-mode=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment