Open GeekPress opened 3 years ago
'rocket_display_varnish_options_tab' => 'return_false',
'rocket_set_wp_cache_constant' => 'return_false',
'rocket_generate_advanced_cache_file' => 'return_false',
'rocket_disable_htaccess' => 'return_true',
clean_raid_boxes_cache
function
public function clean_raid_boxes_cache() {
if ( method_exists( 'RaidboxesNginxCacheFunctions', 'purge_cache' ) ) {
$raid_boxes_cache = new RaidboxesNginxCacheFunctions();
$raid_boxes_cache->purge_cache();
}
}
after_rocket_clean_domain
'after_rocket_clean_domain' => 'clean_raid_boxes_cache',
IDK if we should clear it on other events
[S]
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:
WP_Cache
constantadvanced-cache.php
Additional context A function is available to purge Raidboxes 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 ».