Title: Object Cache Issue
Last modified: April 17, 2024

---

# Object Cache Issue

 *  Resolved [Billy Wilcosky](https://wordpress.org/support/users/wilcosky/)
 * (@wilcosky)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/object-cache-issue-3/)
 * Hello,
 * I’m wondering if a plugin author could review the following thread related to
   this plugin and an SQLite Object Cache plugin. I’m trying to find a way to still
   use the Object Cache plugin, but also ensure profile fields are not cached. Currently,
   profile fields are cached on the front end. My only solution so far is to empty
   the Object Cache. I haven’t found a way to ensure profile meta is ignored. The
   Object Cache plugin author suggested there could be a bug in this user manager
   plugin. That’s why I’m posting here and asking for help.
   [https://wordpress.org/support/topic/omit-something/](https://wordpress.org/support/topic/omit-something/)
   Thank you for your time,Billy

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

 *  Thread Starter [Billy Wilcosky](https://wordpress.org/support/users/wilcosky/)
 * (@wilcosky)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/object-cache-issue-3/#post-17694563)
 * This might be resolved. I added a function to my site that flushes this other
   plugin’s cache when profile fields update.
 *     ```wp-block-code
       function flush_cache_on_user_change( $user_id ) {
           wp_cache_flush();
       }
   
       // Flush on user profile update.
       add_action( 'profile_update', 'flush_cache_on_user_change', 10, 1 );
   
       // Flush on new user registration.
       add_action( 'user_register', 'flush_cache_on_user_change', 10, 1 );
   
       // Flush on user deletion.
       add_action( 'delete_user', 'flush_cache_on_user_change', 10, 1 );
       ```
   
 *  Plugin Support [Robert Fortaleza](https://wordpress.org/support/users/robfrtlz/)
 * (@robfrtlz)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/object-cache-issue-3/#post-17695171)
 * Hi [@wilcosky](https://wordpress.org/support/users/wilcosky/),
 * Thanks for bringing this to our attention.
 * While flushing the plugin’s cache when the profile fields are updated, you can
   also exclude the profile page or the plugin itself from being cache.
 * A reliable caching plugin typically includes this functionality, as caching plugins
   often encounter such issues. By allowing exclusions for specific plugins or pages,
   these caching plugins can effectively address such situations.
 *  Thread Starter [Billy Wilcosky](https://wordpress.org/support/users/wilcosky/)
 * (@wilcosky)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/object-cache-issue-3/#post-17696312)
 * I have my caching plugin ignoring profile pages. The problem ended up being that
   my object cache which is a separate, special type that saves data to SQLite because
   I can’t use other types of object cache (hosting limitation), is caching profile
   data. That plugin doesn’t currently have a way to ignore certain things.
 * So, nothing to do with this User Manager plugin, I just wasn’t 100% sure when
   I originally posted. But, maybe this thread will help someone in the future. 
   Remember everyone, review your object cache if using one, not just any “normal”
   cache. 🤓

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

The topic ‘Object Cache Issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-manager/assets/icon-256x256.png?rev=3468506)
 * [WP User Manager - User Profile Builder & Membership](https://wordpress.org/plugins/wp-user-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Billy Wilcosky](https://wordpress.org/support/users/wilcosky/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/object-cache-issue-3/#post-17696312)
 * Status: resolved