Title: Does This Custom Caching Code Interfere with WP Fastest Cache?
Last modified: July 29, 2024

---

# Does This Custom Caching Code Interfere with WP Fastest Cache?

 *  Resolved [hassantafreshi](https://wordpress.org/support/users/hassantafreshi/)
 * (@hassantafreshi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-interfere-with-wp-fastest-cache/)
 * As the developer of the[ Easy Form Builder plugin](https://wordpress.org/plugins/easy-form-builder/),
   I’m seeking some advice about potential conflicts with WP Fastest Cache.
 * Here is the function I am currently using for internal caching:
 *     ```wp-block-code
       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 WP Fastest Cache. 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoes-this-custom-caching-code-interfere-with-wp-fastest-cache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-interfere-with-wp-fastest-cache/#post-17919711)
 * hi, is it used for the WP_NONCE?
 *  Thread Starter [hassantafreshi](https://wordpress.org/support/users/hassantafreshi/)
 * (@hassantafreshi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-interfere-with-wp-fastest-cache/#post-17923619)
 * Thank you for your quick response. The class that we intend to cache does not
   contain any nonces, CSS, or JavaScript files. Our goal is to use `wp_cache_get`
   and `wp_cache_set` to cache this class in the [Easy Form Builde](https://wordpress.org/plugins/easy-form-builder/)
   r plugin. This frequently used function, which is called multiple times, will
   be moved to the cache to enhance the plugin’s performance. Does your plugin monitor
   or control the performance of `wp_cache_get` and `wp_cache_set` in any way?
 * Thank you.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-interfere-with-wp-fastest-cache/#post-17925946)
 * I guess that it does not cause any problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Does This Custom Caching Code Interfere with WP Fastest Cache?’ is closed
to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

## Tags

 * [question](https://wordpress.org/support/topic-tag/question/)

 * 3 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-interfere-with-wp-fastest-cache/#post-17925946)
 * Status: resolved