From 5bd871fcf5238aaf6d520a7671d56104c010cf6b Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Mon, 23 May 2016 18:30:12 +0800 Subject: [PATCH] Fix cache option --- core/um-user.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 ); }