User cache invalidate tags
4 unresolved threads
4 unresolved threads
Closes #2477903
Merge request reports
Activity
108 113 } 109 114 $query->execute(); 110 115 } 111 116 117 /** 118 * Invalidate cache tags for the specified user. 119 * 120 * @param int $uids 121 * The user account ID the data is associated with. 122 */ 123 protected function invalidateUserCacheTags($uids) { 124 if (is_scalar($uids)) { Why do we need this check here, we are passing $uid as int|string from !5960 (diffs)
Edited by Prashant Chauhan
109 114 $query->execute(); 110 115 } 111 116 117 /** 118 * Invalidate cache tags for the specified user. 119 * 120 * @param int $uids 121 * The user account ID the data is associated with. 122 */ 123 protected function invalidateUserCacheTags($uids) { 124 if (is_scalar($uids)) { 125 $uids = [$uids]; 126 } 127 /** @var \Drupal\user\UserInterface[] $accounts */ 128 $accounts = User::loadMultiple($uids); 108 113 } 109 114 $query->execute(); 110 115 } 111 116 117 /** 118 * Invalidate cache tags for the specified user. 119 * 120 * @param int $uids 121 * The user account ID the data is associated with. 122 */ 123 protected function invalidateUserCacheTags($uids) {
Please register or sign in to reply