Title: Types Cache Bug &#8211; Does not Reset Cache when Changes are saved
Last modified: August 31, 2016

---

# Types Cache Bug – Does not Reset Cache when Changes are saved

 *  [dwlorimer](https://wordpress.org/support/users/dwlorimer/)
 * (@dwlorimer)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/types-cache-bug-does-not-reset-cache-when-changes-are-saved/)
 * Types uses cache to store the data objects it uses.
    On our site, if we edit 
   a custom post meta field that was added by Types, those changes will not display
   on the site. They show up several days later.
 * I was able to confirm in the Types code that this is due to object cacheing. 
   I checked the database, and the fields update correctly.
 * Here’s the code in line 171 of types/embedded/classes/repeater.php:
 *     ```
       $cache_group = 'types_cache';
               $cached_object = wp_cache_get( $cache_key, $cache_group );
   
               if ( $this->use_cache ) {
       			if ( false != $cached_object && is_array( $cached_object ) ) {
       				return $cached_object;
       			}
               }
       ```
   
 * If I add `$this->use_cache = false;` in the function before this, then the pages
   display the correct information.
 * So it appears that Types has a bug where it does not update or flush its object
   cache when custom fields are edited and saved.
 * Has anyone found a solution for this? Types, would you please correct this in
   the next update?
 * [https://wordpress.org/plugins/types/](https://wordpress.org/plugins/types/)

Viewing 1 replies (of 1 total)

 *  [Jan Štětina](https://wordpress.org/support/users/jans-1/)
 * (@jans-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/types-cache-bug-does-not-reset-cache-when-changes-are-saved/#post-7019317)
 * Hi dwlorimer, could you please check and let me know if the issue persists with
   the version 1.9-beta ([https://wp-types.com/2016/01/types-1-9-beta1/](https://wp-types.com/2016/01/types-1-9-beta1/))?

Viewing 1 replies (of 1 total)

The topic ‘Types Cache Bug – Does not Reset Cache when Changes are saved’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Jan Štětina](https://wordpress.org/support/users/jans-1/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/types-cache-bug-does-not-reset-cache-when-changes-are-saved/#post-7019317)
 * Status: not resolved