Does This Custom Caching Code Interfere with Hummingbird Performance ?

[ad_1]

As the developer of the Easy Form Builder plugin, I’m seeking some advice about potential conflicts with Hummingbird Performance.

Here is the function I am currently using for internal caching:

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

My concern is whether using wp_cache_get and wp_cache_set for internal caching might cause any conflicts with Hummingbird Performance. Has anyone had similar experiences or know of best practices to ensure they work together smoothly?

Any guidance or insights would be greatly appreciated.

Thank you for your help!

Best regards,

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer