Description
Important: Hestia 1.6.12 fixes an issue where purging the cache could make the website unavailable, resulting in a 502 error. If you aren’t using this version, please upgrade!
This plugin automatically purges the Nginx cache after you make a website change such as updating a post or changing your theme.
You also have the ability to manually purge the cache using a button in the WordPress admin bar.
Installation
Manage your Hestia cache in a better way by using these steps to install the plugin.
Installing and activating the plugin
- Install Hestia Nginx Cache automatically or by uploading the ZIP file.
- Activate the plugin through the Plugins menu in WordPress.
Getting API access
If you are not the server administrator, you can skip this step.
- Login as the system administrator account and navigate to the server configuration page.
- Enable API access for all users in the Security > System section.
- In the “Allowed IP addresses for API” box, enter both
127.0.0.1
and your server’s public IP.
Generating an Access key
- Log in as your regular user in the Hestia Control Panel and navigate to your user settings.
- Click on the “Access Key” button, and create a new access key with the
purge-nginx-cache
permission. Make sure to save the Secret key, as you will only see it once.
If you do not see the “Access Key” button, it means that the feature is disabled on the server. If you are the administrator, refer to the previous section to enable it. If not, contact your server administrator so that they can enable the API access.
Configuring the plugin
- Navigate to the plugin’s settings in the Settings submenu in the sidebar.
- Enter the Access key and Secret key from the previous section in the appropriate boxes.
- For the hostname, use the HestiaCP same hostname you use to connect to the control panel. Same thing for the port.
- For the username, enter the username that is owner of the domain name you are trying to clear.
FAQ
-
How do I generate an Access key?
-
Refer to the Installation tab for information on how to configure the plugin.
-
Can I manually purge the cache using the plugin?
-
Yes, you can. Once the plugin is installed and activated, you will see a “Purge Nginx Cache” button in the admin bar.
-
I am experiencing issues with the plugin. What do I do?
-
You can try to resolve the problem by purging the cache, deactivating the plugin, or disabling Nginx caching in Hestia.
If you are using Cloudflare and get an error when purging the cache, enter the hostname of the Hestia install in the settings, not the site URL.
-
How can I report security bugs?
-
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.
Reviews
Contributors & Developers
“Hestia Nginx Cache” is open source software. The following people have contributed to this plugin.
Contributors“Hestia Nginx Cache” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Hestia Nginx Cache” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.4.1
- Fix CSRF possibility (thanks to Marek Mikita for reporting via PatchStack).
2.4.0
- Add WP CLI support.
2.3.0
- Add an option to disable automatic purging.
2.2.5
- Fix a dumb issue with the new JavaScript.
2.2.4
- Fix the purge button not working in the frontend.
- Add notice when purging in the frontend.
- Add translations for “pt_BR” and “fr_CA”.
2.2.3
- Fix some PHP warnings.
2.2.2
- Fix issue where a warning could exist if an option wasn’t defined.
2.2.1
- Make sure the nonce is always hidden.
2.2.0
- Show button on the frontend when logged in.
2.1.4
- Fix domain field in admin
- Increase response timeout, in case the server is slow
- Remove SSL verification, in case your HestiaCP serves a self-signed certificate
2.1.3
- Fixed PHP 8.1 compatibility
2.1.2
- Fixed require at least “Can edit posts” permission to reset cache
2.1.0
- Add a setting to disable the admin bar button.
- Add a setting to change the admin bar button’s text.
- Add a purge cache button in the settings page.
- Add a section to site health with the plugin’s info.
2.0.0
- Add support for the new Hestia API, released in 1.6.0.
- Add settings link in the plugins list.
- Remove jQuery usage in the admin JS.
- Remove support for the legacy API, as it was quite unsecure for many reasons.
1.2.2
- Fix automatic purging.
1.2.1
- Fix error notice not appearing when the cache failed to clear.
1.2.0
- Fix the admin bar button not working.
- Fix the notice not appearing.
1.1.0
- Changed the way purges are done, so that they are done only once per post instead of 10+ times.
- Hide password in frontend.
1.0.0
- Initial release.