diff --git a/core/um-user.php b/core/um-user.php index d72984a6..ecf1e612 100644 --- a/core/um-user.php +++ b/core/um-user.php @@ -133,6 +133,12 @@ class UM_User { } function setup_cache( $user_id, $profile ) { + + $disallow_cache = get_option('um_profile_object_cache_stop'); + if( $disallow_cache ){ + return ''; + } + update_option( "um_cache_userdata_{$user_id}", $profile ); }