Skip to content
Snippets Groups Projects

User cache invalidate tags

4 unresolved threads

Closes #2477903

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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)) {
  • 108 113 }
    109 114 $query->execute();
    110 115 }
    111
    116
    117 /**
    118 * Invalidate cache tags for the specified user.
    119 *
    120 * @param int $uids
  • 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
    Loading