From 647a95cca57325b7439420cef7412da12e7dd067 Mon Sep 17 00:00:00 2001 From: mikeyzm <48353088@qq.com> Date: Sun, 7 Aug 2016 19:05:57 +0800 Subject: [PATCH] Fix cache option --- core/um-user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/um-user.php b/core/um-user.php index f1fef1c4..49b8b92a 100644 --- a/core/um-user.php +++ b/core/um-user.php @@ -117,7 +117,7 @@ class UM_User { function get_cached_data( $user_id ) { - $disallow_cache = get_option('um_profile_object_cache_stop'); + $disallow_cache = um_get_option('um_profile_object_cache_stop'); if( $disallow_cache ){ return ''; } @@ -134,7 +134,7 @@ class UM_User { function setup_cache( $user_id, $profile ) { - $disallow_cache = get_option('um_profile_object_cache_stop'); + $disallow_cache = um_get_option('um_profile_object_cache_stop'); if( $disallow_cache ){ return ''; }