Fix cache option

This commit is contained in:
champsupertramp
2016-05-23 18:30:12 +08:00
parent 44d6fdb832
commit 5bd871fcf5
+6
View File
@@ -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 );
}