Title: Does This Custom Caching Code Conflict with Docket Cache
Last modified: August 7, 2024

---

# Does This Custom Caching Code Conflict with Docket Cache

 *  Resolved [hassantafreshi](https://wordpress.org/support/users/hassantafreshi/)
 * (@hassantafreshi)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-conflict-with-docket-cache/)
 * I am a developer for the [Easy Form Builder plugin](https://wordpress.org/plugins/easy-form-builder/),
   and I have a question regarding potential conflicts with Docket Cache.
 * Here is the function in question:
 *     ```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; }
       ```
   
 * I am using the `wp_cache_get` and `wp_cache_set` functions for internal caching.
   My concern is whether this approach might conflict with Docket Cache.
 * Has anyone encountered issues with this kind of setup? Are there best practices
   or specific configurations within Docket Cache to prevent any conflicts? Any 
   advice or insights would be greatly appreciated.
 * Thank you in advance for your help!
 * Best regards,
   Hassan TafreshiDeveloper, Easy Form Builder
 * 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-conflict-with-docket-cache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-conflict-with-docket-cache/#post-17939570)
 * Hi there,
 * From the given code, nope, there shouldn’t be a conflict with Docket Cache.
 * Thanks.
 *  Thread Starter [hassantafreshi](https://wordpress.org/support/users/hassantafreshi/)
 * (@hassantafreshi)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-conflict-with-docket-cache/#post-17939774)
 * Hi,
   Thank you for your quick and comprehensive response.

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

The topic ‘Does This Custom Caching Code Conflict with Docket Cache’ is closed to
new replies.

 * ![](https://ps.w.org/docket-cache/assets/icon-256x256.png?rev=2425893)
 * [Docket Cache - Object Cache Accelerator](https://wordpress.org/plugins/docket-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/docket-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/docket-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/docket-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/docket-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/docket-cache/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [hassantafreshi](https://wordpress.org/support/users/hassantafreshi/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/does-this-custom-caching-code-conflict-with-docket-cache/#post-17939774)
 * Status: resolved