wp-media / wp-rocket

Performance optimization plugin for WordPress
https://wp-rocket.me
GNU General Public License v2.0
687 stars 215 forks source link

Auto-compatibility with Raidboxes Hosting #3911

Open GeekPress opened 3 years ago

GeekPress commented 3 years ago

Is your feature request related to a problem? Please describe. Raidboxes is using its own page caching system (NGINX). Because of that, we need to improve our purge cache compatibility. When someone purges the WP Rocket cache or saves the options, the server cache isn't purged too.

Describe the solution you'd like We must disable our page caching if the current website is hosted on Raidboxes and automatically clear the NGINX cache.

We also need to do some other enhancements:

Additional context A function is available to purge Raidboxes cache:

$fn = new RaidboxesNginxCacheFunctions();
$fn->purge_cache();

The function is defined in /rb-plugins/nginx-cache/functions.php

/!\ To test and debug, you can create an account and create unlimited free « boxes ».

mostafa-hisham commented 2 years ago

Scope a solution ✅

IDK if we should clear it on other events

Estimate the effort ✅

[S]