How to manage Nginx caching and rewrites
The Nginx section in Enhance contains FastCGI cache, Cache exclusion, rewrite controls, and Purge cache. Opcode caching is on a separate Optimisation page.
Open the Nginx settings
Section titled “Open the Nginx settings”- Open your website in the Enhance control panel.
- In the website’s top menu, choose Advanced → Developer tools.
- Click Nginx in the page’s left section navigation.
- Check the domain shown beside Select the domain you would like to configure before changing a setting.
Enable FastCGI cache
Section titled “Enable FastCGI cache”The panel describes FastCGI caching as keeping a static cache of rendered pages so a cached request does not need to be passed to PHP.
Use the switch beside FastCGI cache to turn it on or off. Check the resulting switch state and any message displayed by the panel. The example below shows it on.

Add cache exclusions
Section titled “Add cache exclusions”The Cache exclusion description says that paths entered here will never be cached. It gives shopping carts as an example of pages that must be dynamic, and /wp-admin as an example of an exact path.
- Find Cache exclusion below the FastCGI cache switch.
- Enter the path in the field beside that description.
- Click Add.
- Review the result or any message returned by the panel.
Add URL rewrites
Section titled “Add URL rewrites”The panel describes rewrites as sending a path to a PHP script when the file does not exist. Its explanation mentions WordPress permalinks and rewrites that would otherwise use .htaccess.
- Find the rewrite section below Cache exclusion. When no rules are listed, it shows No rewrites with an Add button.
- Click Add. The section opens a row with Source path and Destination path. It also shows Add rewrite above the table.
- Fill in Source path and Destination path for the rule you want to create.
- Click Create and review the result. Use Cancel to close the row without creating a rule.

Purge the cache
Section titled “Purge the cache”Below the rewrite controls, Purge cache states that the action deletes all currently cached pages from the cache.
Check the domain shown at the top of Nginx, then click Purge in Purge cache when you want to perform that action. Read any message returned by the panel.
Opcode caching in Optimisation
Section titled “Opcode caching in Optimisation”- Open Advanced → Optimisation in the website’s top menu.
- Find Opcode caching.
- Use its switch to turn the option on or off, then check the resulting state and any message displayed.
The panel describes this option as caching the compiled operation code of PHP scripts to serve the website’s content. The example below shows the switch on.
