• Resolved hassantafreshi

    (@hassantafreshi)


    I am a developer for the Easy Form Builder plugin, and I have a question regarding potential conflicts with Super Page Cache for Cloudflare.

    Here is the function in question:

    public function get_efbFunction($state) { if (isset($this->efbFunction)) return $this->efbFunction; $efbFunctionInstance; if (false === ($efbFunctionInstance = wp_cache_get('efbFunctionInstance', 'emsfb'))) { if (!class_exists('Emsfb\efbFunction')) { require_once(EMSFB_PLUGIN_DIRECTORY . 'includes/functions.php'); } $efbFunctionInstance = new \Emsfb\efbFunction(); wp_cache_set('efbFunctionInstance', $efbFunctionInstance, 'emsfb', 3600); // 1 hour cache } $this->efbFunction = $efbFunctionInstance; if ($state == 1) return $this->efbFunction; }

    I am using the wp_cache_get and wp_cache_set functions for internal caching. My concern is whether this approach might conflict with Super Page Cache for Cloudflare.

    Has anyone encountered issues with this kind of setup? Are there best practices or specific configurations within Super Page Cache for Cloudflare to prevent any conflicts? Any advice or insights would be greatly appreciated.

    Thank you in advance for your help!

    Best regards,
    Hassan Tafreshi
    Developer, Easy Form Builder

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    wp_cache_get and wp_cache_set are used to add data to persistent object cache of the website like redis. This plugin does not modify or tinker with object cache with any way. It is just a page caching plugin. So, I’m not seeing any issues with using the wp_cache_* functions.

    Thread Starter hassantafreshi

    (@hassantafreshi)

    Hi,
    Thank you for your quick and comprehensive response.

    Plugin Contributor iSaumya

    (@isaumya)

    No problem. Always happy to help. ??

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