| @@ 77-89 (lines=13) @@ | ||
| 74 | /** |
|
| 75 | * {@inheritdoc} |
|
| 76 | */ |
|
| 77 | public function updateGroup(GroupUpdateStruct $struct) |
|
| 78 | { |
|
| 79 | $this->logger->logCall(__METHOD__, array('struct' => $struct)); |
|
| 80 | $group = $this->persistenceHandler->contentTypeHandler()->updateGroup($struct); |
|
| 81 | ||
| 82 | $this->cache->deleteItems([ |
|
| 83 | 'ez-content-type-group-list', |
|
| 84 | 'ez-content-type-group-' . $struct->id, |
|
| 85 | 'ez-content-type-group-' . $struct->identifier . '-by-identifier', |
|
| 86 | ]); |
|
| 87 | ||
| 88 | return $group; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * {@inheritdoc} |
|
| @@ 197-207 (lines=11) @@ | ||
| 194 | /** |
|
| 195 | * {@inheritdoc} |
|
| 196 | */ |
|
| 197 | public function updateUserToken(UserTokenUpdateStruct $userTokenUpdateStruct) |
|
| 198 | { |
|
| 199 | $this->logger->logCall(__METHOD__, array('struct' => $userTokenUpdateStruct)); |
|
| 200 | $return = $this->persistenceHandler->userHandler()->updateUserToken($userTokenUpdateStruct); |
|
| 201 | ||
| 202 | // As we 1. don't know original hash, and 2. hash is not guaranteed to be unique, we do it like this for now |
|
| 203 | $this->cache->invalidateTags(['user-' . $userTokenUpdateStruct->userId . '-account-key']); |
|
| 204 | $this->cache->deleteItems(['ez-user-' . $userTokenUpdateStruct->hashKey . '-by-account-key']); |
|
| 205 | ||
| 206 | return $return; |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * {@inheritdoc} |
|