The WP Super Cache plugin in WordPress website may not work after installation, the specific steps to solve the problem are as follows:
Checking the cache file
- Go to the wp-content directory: Execute the command cd /var/www/html/wordpress/wp-content.
- Checking wp-cache-config.php: If it does not exist, copy . /plugins/wp-super-cache/wp-cache-config-sample.php to wp-content/ and name it wp-cache-config.php, i.e. execute cp plugins/wp-super-cache/wp-cache- config-sample.php . /wp-cache-config.php.
- Checking advanced-cache.php: If it doesn't exist, copy . /plugins/wp-super-cache/advanced-cache.php to the wp-content/ directory with the command cp plugins/wp-super-cache/advanced-cache.php . /.
Add Configuration
Go back to the WordPress root directory and add the following two lines before ABSPATH in the wp-config.php file:
define('WP_CACHE', true);
define('WPCACHEHOME','/var/www/html/wordpress/wp-content/plugins/wp-super-cache/');;
Save and revisit the backend.
