Operating System & Version
CloudLinux v8.6.0 STANDARD vmware
cPanel & WHM Version
106.0 (build 7)

VDS-agency

Registered
Sep 27, 2022
3
0
1
Phoenix
cPanel Access Level
DataCenter Provider
Has anyone found a solution to clear the NGINX Proxy cache from within WordPress?

Many of our clients are completely new to anything web hosting related.

Just teaching them to log into WordPress and do basic editing can be a huge accomplishment.

Requiring them to do an additional login to a cPanel account just to clear the NGINX cache after even simple edits are made on their WordPress site is a huge stretch.

The best option would be to have the ability to clear the cPanel NGINX cache from within WordPress via a menu selection.

We have tried all the NGINX cache clearing plugins available at WordPress.org - none of these has any effect on the cPanel NGINX cache.

Any help or guidance here would be greatly appreciated.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,307
2,239
363
cPanel Access Level
Root Administrator
Hey there! I don't have a way to do this as, you mentioned, the cache is specific to cPanel tools. This sounds like it would make a great feature request as something we could possibly add to our WordPress Toolkit implementation, so if you'd like to submit that using the link in my signature I can bring it up with the team during next week's meeting.
 

VDS-agency

Registered
Sep 27, 2022
3
0
1
Phoenix
cPanel Access Level
DataCenter Provider
I'm all for adding the option to WordPress Toolkit but that would still require a login to cPanel.

If there were some sort of "hook" or method to access the NGINX caching options from within WordPress I'm sure a simple WordPress plugin could be created to trigger the cache clearing. As far as I know, there does not seem to be any way to trigger the cache clearing from within WordPress.

As things are right now we can only enable the NGINX cache on a few of our hosted WordPress sites. This is really a shame as the NGINX cache greatly reduces the load on our hosts.
 

LEOPARDhost

Member
Oct 1, 2021
9
2
3
NSW, Australia
cPanel Access Level
DataCenter Provider

dzamanakos

Well-Known Member
Feb 15, 2014
79
6
58
Larisa / Greece
cPanel Access Level
Root Administrator
Furthermore, you could add to your feature request that it would be great that this feature could be added in the cpanel's AccelerateWP plugin, so users can purge the website cache and nginx cache from the same buttons.
 

LEOPARDhost

Member
Oct 1, 2021
9
2
3
NSW, Australia
cPanel Access Level
DataCenter Provider
you could add to your feature request that it would be great that this feature could be added in the cpanel's AccelerateWP plugin
Is that possible though - just on the basis that AccelerateWP is a CloudLinux product rather than cPanel/WebPros?
 

LEOPARDhost

Member
Oct 1, 2021
9
2
3
NSW, Australia
cPanel Access Level
DataCenter Provider
Usually it's around a month or so before we make a decision on new requests, but one of the product owners will reply directly to the feature once that happens.
Thanks for the update Rex, how's it going with the decision?

The feature request has 6 upvotes and 2 comments now. :)
 

LEOPARDhost

Member
Oct 1, 2021
9
2
3
NSW, Australia
cPanel Access Level
DataCenter Provider
Would love to hear any update on the inclusion of this for consideration!
@cPRex how's it going with initial decision-making? People need this integration more than want it.

The feature request has been up for 2 months, has 10 upvotes, many comments, forum threads, etc.

Many thanks in advance for your update!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,307
2,239
363
cPanel Access Level
Root Administrator
I talked with the team this morning, and it sounds like anything that were to happen with this would need to happen not inside cPanel, but inside WordPress Toolkit. It does sound like the WordPress Toolkit team wants to explore this, although I don't have any idea on their work or timelines, but at this point it wouldn't be a separate tool created by cPanel that integrates directly in WordPress.
 

LEOPARDhost

Member
Oct 1, 2021
9
2
3
NSW, Australia
cPanel Access Level
DataCenter Provider
It does sound like the WordPress Toolkit team wants to explore this, although I don't have any idea on their work or timelines
Thanks for the clarity. This is more specific than Adam (Product Owner?) on the Feature Request who's said:
We don't currently provide integrations that exist within WordPress. This is not to say we won't.

For that reason, I've transitioned this to open discussion in order to gain further feedback.
Are we able to please get a rough insight into WP Toolkit's workload/plan to implement?

ie. Would this be in 3, 6, 12 months time, if at all? So we can forge a plan. Thanks!
 

VDS-agency

Registered
Sep 27, 2022
3
0
1
Phoenix
cPanel Access Level
DataCenter Provider
While I am happy to see any movement on this issue adding this to WordPress Toolkit kind of defeats the purpose of the original request.

Most of our clients are not IT professionals. Teaching them how to log in and make simple edits in WordPress is usually a huge accomplishment.

If they have enough knowledge and experience to log into cpanel to clear the NGINX cache in WordPress Toolkit they could easily just click the already existing button in the cpanel dashboard to clear the NGINX cache.

What is so different about the way cpanel is implementing the NGINX proxy cache that prevents the already existing WordPress plugins that are specifically designed to clear this cache from working correctly? If I remember correctly, installing Engintron to get NGINX proxy caching to work on cpanel did not have this issue.

We are trying to avoid installing products like Engintron on our panel hosts to make support simpler but it seems like there may be no other option.
 

LEOPARDhost

Member
Oct 1, 2021
9
2
3
NSW, Australia
cPanel Access Level
DataCenter Provider
We've now published a WordPress Plugin that provides a one-click Purge NGINX Cache button in the admin top bar:

https://github.com/LEOPARD-host/TNC-WP-Toolbox

It needs a cPanel API Token to be set in a static file above public_html for it to work. Hopefully it helps others. Thanks!
 
  • Like
Reactions: cPRex