Technical Configurations
Technical guides, info, and code examples.
When does WP Rocket write to the .htaccess file?
WP Rocket writes to the .htaccess file in the scenarios listed below. Enabling or disabling plugin features: Mobile Cache WebP Compatibility CDN / RocketCDN Also, adding values to these features: Never Cache URLs Never Cache Cookies Never Cache User Agents Enabling or disabling…
WP CLI interface for WP Rocket
What is the WP Rocket CLI? It’s an extension for the WP-CLI, that allows you to: Handle common WP Rocket functions, e.g. cache clearing, preloading, etc, using the command line. Automate repetitive manual tasks by using WP-CLI-driven scripts.Prerequisites SSH access to…
WP Rocket installation from GitHub using Composer
WP Rocket can be installed directly from our GitHub repository: https://github.com/wp-media/wp-rocketRequirements: Composer - this has to be installed on the PC/server where you are planning to install WP Rocket. PHP 7.3 or greater - this is necessary to run Mozart, one…
WP Rocket rules in the .htaccess file
Upon activation, WP Rocket will automatically add some rules to the .htaccess file. The different blocks and rules are WP Rocket's instructions to apply browser caching, GZIP compression, redirect the requests to the cached pages, and others. These rules work on Apache…
WP_DEBUG: Enable error logging in WordPress
In some cases our support staff might ask you to attach an error log file to your support ticket. This article explains how you retrieve that file in WordPress. Have you edited code before? In order to enable WordPress’ debug…