Hello,
I’ve been working with the Easy Form Builder plugin and encountered some difficulties with page caching. To address these issues, we’ve implemented the following function to manage page caching plugins alongside Easy Form Builder:
public function cache_cleaner_Efb($page_id,$plugins){
$page_id = intval($page_id);
$cache_plugins = json_decode($plugins);
foreach($cache_plugins as $plugin){
switch($plugin->slug){
case 'litespeed-cache':
if (defined('LSCWP_V') || defined('LSCWP_BASENAME' )) do_action( 'litespeed_purge_post', $page_id );
break;
case 'wp-rocket':
if (function_exists('rocket_clean_post')) $r = rocket_clean_post($page_id);
break;
.
.
.
}
}
}
we’re now looking for a more integrated solution. Ideally, we’d like a structure or method similar to what other plugins use to manage caching more efficiently.
I appreciate any assistance or insights you can provide on this matter!
Best regards,
]]>There’re some custom routes on our website and I want to exclude few routes or disable rest api altogether if excluding routes not available.
How can I do that.
I got this error after the last plugin update !!
]]>