Title: disable update_meta_cache
Last modified: September 9, 2022

---

# disable update_meta_cache

 *  Resolved [owengna](https://wordpress.org/support/users/owengna/)
 * (@owengna)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/disable-update_meta_cache/)
 * Hi, I have generated multiple post types and custom fields and I noticed that
   the page loading speed is affected by the lot number of update_meta_cache query
   from the plugin. Is there any way to disable it? I am using litespeed cache so
   it is not necessary to cache it. Please let me know.

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

 *  Plugin Support [alexandrubodea](https://wordpress.org/support/users/alexandrubodea/)
 * (@alexandrubodea)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/disable-update_meta_cache/#post-16000711)
 * Hi [@owengna](https://wordpress.org/support/users/owengna/),
 * Unfortunately, there’s not much we can do about this as it’s recommended to clear
   the cache once something gets updated. Otherwise, you could receive old data 
   when querying meta information.
 * Best regards,
 *  Thread Starter [owengna](https://wordpress.org/support/users/owengna/)
 * (@owengna)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/disable-update_meta_cache/#post-16007182)
 * But how about optimising the loading query?
 * I checked the query monitor and noticed that all pages load all custom meta box
   data even though they are not needed for the current page.
 * For example, I set up a custom meta box with data for a custom post type “Book”.
   I can see the custom meta box for “Book” is loaded with “update_meta_cache” on
   a normal page.
 *  Plugin Support [alexandrubodea](https://wordpress.org/support/users/alexandrubodea/)
 * (@alexandrubodea)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/disable-update_meta_cache/#post-16008243)
 * Hi [@owengna](https://wordpress.org/support/users/owengna/),
 * You can try using the following custom code to see if it helps:
 *     ```
       add_filter('init', 'wckc_remove_serialized_update');
       function wckc_remove_serialized_update(){
       	remove_filter( "get_post_metadata", 'wck_serialized_update_from_unserialized', 10, 4 );
       }
       ```
   
 * You can use the code by adding it to your theme’s ‘functions.php’ file or by 
   creating a new plugin as described [here](https://www.cozmoslabs.com/docs/paid-member-subscriptions/developer-knowledge-base/).
 * Best regards,

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

The topic ‘disable update_meta_cache’ is closed to new replies.

 * ![](https://ps.w.org/wck-custom-fields-and-custom-post-types-creator/assets/icon-
   256x256.png?rev=2257602)
 * [Custom Post Types and Custom Fields creator - WCK](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [alexandrubodea](https://wordpress.org/support/users/alexandrubodea/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/disable-update_meta_cache/#post-16008243)
 * Status: resolved