Title: Docket Cache on Admin Dashboard
Last modified: June 18, 2021

---

# Docket Cache on Admin Dashboard

 *  Resolved [mpassos](https://wordpress.org/support/users/mpassos/)
 * (@mpassos)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/)
 * Hey there,
 * So… the other questions.. are about the admin area:
 * Is the cache enabled in the admin? Should I worry about order management in WooCommerce?
 * What does the option Deactivate Woocommerce admin means? Deactivate cache for
   WC admin area?
 * When Advanced post caching is enabled, if I updated a product’s price… does the
   home page gets updated too?
 * When do you recommend I should flush the cache? Should I worry about pricees 
   and such?
 * If I install opcache on my server.. i still need the plugin to use it with WP,
   right? It needs to create the object-cache.php file or it won’t use the php cache..
   right?
 * Sorry for the dumb questions =)
 * THANKS A LOT!

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

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/#post-14572986)
 * Hi,
 * First, object caching means the cache needs to add/update/delete/expiration by
   using wp_cache_* function. By default, WordPress core uses it. When activating
   docket cache, it extends the feature makes it persistent by storing the cache
   into php files using object-cache.php file, it called drop-in file.
 * > Is the cache enabled in the admin?
 * Yes, with or without docket cache, WordPress object cache enables by default.
 * > Should I worry about order management in WooCommerce?
 * No.
 * > What does the option Deactivate Woocommerce admin means
 * It turn off WooCommerce Analytics page. It related to performance.
 * > When Advanced post caching is enabled, if I updated a product’s price… does
   > the home page gets updated too?
 * Yes, it should automatically, unless you’re updating directly to database without
   using WordPress.
 * What Advanced post caching does is, it reduce database query by caching WordPress
   post queries.
 * > When do you recommend I should flush the cache? Should I worry about pricees
   > and such?
 * Only when you need something fresh. Normally it’s not caused any issue.
 * > If I install opcache on my server.. i still need the plugin to use it with 
   > WP, right?
 * No need. We only require a native opcache extension. Docket cache comes with 
   OPcache viewer. You can enable it at Configuration -> OPcache Viewer.
 * > It needs to create the object-cache.php file or it won’t use the php cache
 * Docket cache will handle this part. Without it own object-cache.php file, docket
   cache can’t handle object caching.
 * I’m suggesting using “query monitor” plugin for debugging and see what happens
   in WordPress process.
    [https://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)
 * you’re welcome, glad to help.
 * Thanks.
 *  Thread Starter [mpassos](https://wordpress.org/support/users/mpassos/)
 * (@mpassos)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/#post-14573017)
 * Hey there, thanks for the answers!
 * “What does the option Deactivate Woocommerce admin means”
 * – It turn off WooCommerce Analytics page. It related to performance.
 * >> You should say that in the docs!, because it looks like it would deactivate
   the docket cache on the admin area of woocommerce (orders and such)
 * “When Advanced post caching is enabled, if I updated a product’s price… does 
   the home page gets updated too?”
 * – Yes, it should automatically, unless you’re updating directly to database without
   using WordPress.
 * >> So.. when I update a post or an order/product, the cache is flushed?
 * —
 * I have mysql query cache enabled.. should I deactivate it?
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/#post-14573027)
 * > You should say that in the docs!, because it looks like it would deactivate
   > the docket cache on the admin area of woocommerce (orders and such)
 * Yes, I think I should use the less technical word since it only triggers “woocommerce_admin_disabled”
   filter set to true. Will change it in the next release and updates the docs as
   well.
 * > So.. when I update a post or an order/product, the cache is flushed?
 * It will update the cache, by triggering wp action/filter hook. You can refer 
   here:
    [https://github.com/nawawi/docket-cache/blob/master/includes/src/PostCache.php](https://github.com/nawawi/docket-cache/blob/master/includes/src/PostCache.php)
   at line 52.
 *     ```
       private function setup_hooks()
           {
               add_action('switch_blog', [$this, 'setup_for_blog'], 10, 2);
               add_filter('posts_request', [&$this, 'posts_request'], 10, 2);
               add_filter('posts_results', [&$this, 'posts_results'], 10, 2);
               add_filter('post_limits_request', [&$this, 'post_limits_request'], 999, 2);
               add_filter('found_posts_query', [&$this, 'found_posts_query'], 10, 2);
               add_filter('found_posts', [&$this, 'found_posts'], 10, 2);
   
               // https://developer.wordpress.org/reference/functions/clean_term_cache/
               add_action('clean_term_cache', [$this, 'flush_cache']);
               add_action('clean_post_cache', [$this, 'flush_cache']);
       ```
   
 * > I have mysql query cache enabled.. should I deactivate it?
 * No need.
 * You can always report if found any issue if the post not updated as it should
   and not as expected.
 * Thanks.
 *  Thread Starter [mpassos](https://wordpress.org/support/users/mpassos/)
 * (@mpassos)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/#post-14573061)
 * “So.. when I update a post or an order/product, the cache is flushed?”
 * – It will update the cache,
 * >> You don’t mention that anywhere in the docs! You should.
 * Question: I use Wp All Import to import 17k products. I am doing an import now
   and I noticed that everytime i visit the home page the products change. So, as
   you said it flush the cache after every product / order update.. is there a way
   to disable that? I would like it to flush the cache only when the import finish..
   not after every product is updated. It’s taking too long to update the products
   with the cache on.
 * So… it’s a thing. =)
 * ps: really thanks for being so responsive and kinda! your plugin rocks and will
   have milions installs soon i guess! =)
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/#post-14573069)
 * the docs is not complete yet. in this case, you can disabled object cache at 
   Overview page, click disable object cache or deactive docket cache.
 * thanks.
 *  Thread Starter [mpassos](https://wordpress.org/support/users/mpassos/)
 * (@mpassos)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/#post-14573096)
 * Thank you!

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

The topic ‘Docket Cache on Admin Dashboard’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [mpassos](https://wordpress.org/support/users/mpassos/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/docket-cache-on-admin-dashboard/#post-14573096)
 * Status: resolved