mainwp / mainwp-child

The MainWP Child plugin is installed on the WordPress sites that you want to control from the MainWP Dashboard.
https://mainwp.com
GNU General Public License v3.0
93 stars 54 forks source link

feat: support RunCloud Hub auto purge cache in the cache control #406

Closed agusmu closed 5 months ago

agusmu commented 6 months ago

All Submissions:

Changes proposed in this Pull Request:

This change is to support RunCloud Hub in the Cache Control extension.

RunCloud Hub is server-side caching system that is provided by RunCloud for the users to make it easily to enable server-side page caching, where user can choose FastCGI Page Cache or Redis Full-Page Cache for NGINX servers.

The RunCloud Hub WordPress plugin does more than cache purger, where it has more cache rule exclusion, preload, etc.

It also support some popular cache plugins, user can combine RunCloud Hub (server-side) with WP Rocket, WP Super Cache, W3 Total Cache, etc (WordPress-side).

This is also the reason to put RunCloud Hub on the latest list of cache plugin detection on the check_cache_solution function. This is to make sure when user use any other cache plugin, it will always be detected as RunCloud Hub. And then when clearing cache of RunCloud Hub, it will also clear the cache of the other plugin that user use.

How to test the changes in this Pull Request:

  1. If you use RunCloud, you can enable RunCloud Hub feature in the RunCloud, then test Cache Control extension
  2. if needed, we can provide test site with RunCloud Hub installed

Other information:

Changelog entry

Added: RunCloud Hub to the Purge Cache system for the Cache-Control Extension

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud