diff --git a/Modules/User/Repositories/Cache/CacheUserTokenDecorator.php b/Modules/User/Repositories/Cache/CacheUserTokenDecorator.php
index f36866598..f157b380a 100644
--- a/Modules/User/Repositories/Cache/CacheUserTokenDecorator.php
+++ b/Modules/User/Repositories/Cache/CacheUserTokenDecorator.php
@@ -26,15 +26,9 @@ public function __construct(UserTokenRepository $repository)
*/
public function allForUser($userId)
{
- return $this->cache
- ->tags([$this->entityName, 'global'])
- ->remember(
- "{$this->locale}.{$this->entityName}.allForUser.{$userId}",
- $this->cacheTime,
- function () use ($userId) {
- return $this->repository->allForUser($userId);
- }
- );
+ $this->remember(function () use ($userId) {
+ return $this->repository->allForUser($userId);
+ });
}
/**
diff --git a/Modules/User/changelog.yml b/Modules/User/changelog.yml
index 59c9b38a3..f8885c9bb 100644
--- a/Modules/User/changelog.yml
+++ b/Modules/User/changelog.yml
@@ -1,5 +1,8 @@
url: https://github.com/AsgardCms/Platform
versions:
+ "3.4.0@unreleased":
+ changed:
+ - Using new remember
method in the CacheUserTokenDecorator
class
"3.2.0":
added:
- Role views (index, create, edit) have been converted to VueJS components, as a SPA