Skip to content

Greg Sullivan

Resolving the conflict between Autoptimize and WP Super Cache’s Expert delivery method

Just before I launched this website, I began setting up WP Super Cache and Autoptimize, the former caching all of the site’s pages, and the latter aggregating the site’s JavaScript and CSS. All of which went well until I was doing final testing and noticed that browser caching had effectively been disabled for the aggregatedContinue reading “Resolving the conflict between Autoptimize and WP Super Cache’s Expert delivery method”

Detecting SiteGround’s staging environment

Managed WordPress hosts reliably include a staging environment, and most hosts do a good job of providing both a means of detecting whether code is running on a staging environment and documentation explaining how that detection works. WP Engine provides is_wpe() for detecting production and is_wpe_snapshot() for detecting their staging environment. (You’ll need to checkContinue reading “Detecting SiteGround’s staging environment”