When debugging, you may find the need to disable the caching behavior on your site. Specifically, when testing deployed changes, you don’t want to be thrown off by cached data. At the same time, disabling PressCACHE/PressCDN is not recommended on production or staging, so how do we go about debugging these environments?
Enabling Developer Mode will serve a cookie to your browser which disables PressCACHE/PressCDN when viewing the site in your current browser session. This allows you to work effectively without disrupting how these environments generally perform.
Enabling Dev Mode
Developer Mode is available to enable under the PressCACHE settings within your WordPress dashboard.
- Log into your WordPress site as an administrator user.
- From the menu on the left, hover over Pagely and click on PressCACHE.
- Enable the Dev Mode checkbox and save your settings.
After enabling Developer Mode, PressCACHE and PressCDN will be disabled for your browser session. This means you will need to enable Developer Mode again if you happen to clear your cookies, use a different browser, or if the cookie expires.