Title: Multiple nodes
Last modified: November 30, 2020

---

# Multiple nodes

 *  Resolved [elig7](https://wordpress.org/support/users/elig7/)
 * (@elig7)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-nodes-2/)
 * Hi,
    After installing the plugin on dev env caching seem to work very nice. I
   installed the plugin on another testing env but this time on env with two wordpress
   nodes, same db different server so actually each node has it’s own cache folder
   and configuration.
 * The hit percentage has dropped by almost 10% even if I go to the same page multiple
   time and verify each node go hit multiple times.
 * 1. Is this expected?
    2. Is there some thing planned in the future to improve
   the plugin behaviour in this setup.
 * Thanks

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

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-nodes-2/#post-13726561)
 * Hi,
 * What I understand is your setup kind of “Multiple WordPress instances with a 
   single database”?. [https://wordpress.org/support/article/installing-multiple-blogs/](https://wordpress.org/support/article/installing-multiple-blogs/)
 * You can try:
    1. define DOCKET_CACHE_PRECACHE to false 2. define DOCKET_CACHE_DEV
   to true 3. define DOCKET_CACHE_LOG_ALL to true
 * and monitor the log file for ‘info’ and ‘err’ type log.
 * To answer your question:
    1. I’m not expecting Docket Cache will be used in this
   kind of setup. 2. Yes, thank you for asking this question and give me some idea
   and need to test it first.
 * Thanks.
 *  Thread Starter [elig7](https://wordpress.org/support/users/elig7/)
 * (@elig7)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-nodes-2/#post-13726672)
 * Thank you for your respond,
    It is actually more of high availability solution,
   both instances serve the same website, it is working for all other plugins. For
   docket so far I can see in terms of functionality the site is behaving ok, I 
   am just trying to figure out what query keeps on changing that they are missed
   and not cached.
 * Can you explain what DOCKET_CACHE_DEV do? it is not in the doc.
    What will setting
   DOCKET_CACHE_PRECACHE to false do? what is the expected impact?
 * Thanks
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-nodes-2/#post-13726772)
 * DOCKET_CACHE_DEV for development and only to see if new data same with current
   data in a cache file. If no changes it will not write to disk.
 * For example:
 *     ```
       [2020-11-30 16:14:20 UTC] info : "docketcache-precache:7af5291854fe" "dc_save()->todisk" "/tag/sunt-aliquam-vero-doloremque/"
       [2020-11-30 16:14:17 UTC] info : "docketcache-precache:75d1b1c0a85d" "dc_precache_set()->nochanges" "/"
       ```
   
 * DOCKET_CACHE_PRECACHE when set to true, it will load all object cache that has
   been cached before based on the current URL.
 * For example, if aa.com/ has 10 objects from start to end the page, docket will
   load it first based on precache data. Set to false will disable this behaviour.
 * Your setup should no effect with docket since docket only know either it’s a 
   single site or multisite setups, and the difference is the cache key. If multisite
   each cache key will prepend with site id.
 * Thanks.
    -  This reply was modified 5 years, 6 months ago by [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/).
 *  Thread Starter [elig7](https://wordpress.org/support/users/elig7/)
 * (@elig7)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-nodes-2/#post-13731139)
 * Can you please explain what exactly are
    define(‘DOCKET_CACHE_PRELOAD’, false);
   define(‘DOCKET_CACHE_PAGELOADER’, true);
 * Are they relevant only to the wordpress administration?
 * Thanks
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-nodes-2/#post-13731260)
 * Hi,
 * Yes, it only relevant to the wordpress administration.
 * DOCKET_CACHE_PRELOAD will preload/fetch admin related page after flush the cache.
   
   [https://github.com/nawawi/docket-cache/blob/master/includes/src/Plugin.php#L1389](https://github.com/nawawi/docket-cache/blob/master/includes/src/Plugin.php#L1389)
   for list of page.
 * DOCKET_CACHE_PAGELOADER will show small progress bar when unloading the page 
   it only show if it take longer to load the page.
 * [https://github.com/nawawi/docket-cache/blob/master/includes/admin/pageloader.js](https://github.com/nawawi/docket-cache/blob/master/includes/admin/pageloader.js)
 * The documentation it not complete yet, will update from time to time.
 * Thanks.

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

The topic ‘Multiple nodes’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-nodes-2/#post-13731260)
 * Status: resolved