mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix cache option
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user