Are you using FastCGI cache? Great!
Is NGINX Helper not purging your cache? No worries, here’s the solution.
- To set custom cache path in NGINX Helper plugin, add a new constant in wp-config.php file
<?php // Set NGINX Cache Directory define('RT_WP_NGINX_HELPER_CACHE_PATH', '/var/www/cache/'); /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://codex.wordpress.org/Editing_wp-config.php * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'example' ); ...
Earlier, I was using NGINX cache plugin that had UI for setting up custom cache path but that was not working properly for Hindi language encoded URL.
Therefore, I switched to NGINX Helper to accomplish the task.
Where I can find wp-config.php file in WordPress?
You can use File Manager plugin to find your wp-config.php file.
Does NGINX Helper support purging AMP URL?
Unfortunately, no at this moment.
What is NGINX?
NGINX is a high-performance web server that’s faster than Apache.
How do I fix Filesystem API could not be initialized error?
Resolve Cache directory permission using follow command
chown -R www-data:www-data /var/www/
sudo chmod -R 755 /var/www
Which plugin do you recommend NGINX Helper or NGINX Cache?
Well, it depends. NGINX Cache works fine for most English language blog. I prefer using NGINX Helper when I need Redis for Page Caching or to support encoded URL.