Opis
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.
Instalacja
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.
Najczęściej zadawane pytania
-
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.
Recenzje
Kontrybutorzy i deweloperzy
„Hestia Nginx Cache” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój wtyczki.
ZaangażowaniWtyczka „Hestia Nginx Cache” została przetłumaczona na 1 język. Podziękuj tłumaczom za ich wkład.
Przetłumacz wtyczkę “Hestia Nginx Cache” na swój język.
Interesuje cię rozwój wtyczki?
Przeglądaj kod, sprawdź repozytorium SVN lub czytaj dziennik rozwoju przez RSS.
Rejestr zmian
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.