• Resolved hassantafreshi

    (@hassantafreshi)


    Hi,
    While working on the Easy Form Builder plugin, I encountered challenges with page caching. To resolve these issues, we use the following function to manage the interaction between Easy Form Builder and other page caching plugins.

    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;
    .
    .
    .

    }
    }

    }

    However, we’re seeking a more integrated solution. Specifically, we’re looking for a structure or method similar to what other plugins use to manage caching effectively.

    Thank you in advance for your help and insights!

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @hassantafreshi !

    As OPcache is not a page caching tool or mechanism, I must admit I’m a little confused by your (absence of) question. Could you tell me exactly what you would like me to do?

    Thread Starter hassantafreshi

    (@hassantafreshi)

    @pierrelannoy Thank you for the explanations. I am reaching out to all cache-related plugins to check if there is a possibility that they might have a function that caches pages, potentially causing issues with our form builder. Based on your explanation, it seems that your plugin does not perform such actions, so there should be no conflict with the Easy Form Builder plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.