Skip to content

Commit 17d93de

Browse files
committed
perf(files_reminders): Wrap with local cache
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent c0b22ed commit 17d93de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/files_reminders/lib/Service/ReminderService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use DateTime;
1313
use DateTimeZone;
14+
use OC\Memcache\WithLocalCache;
1415
use OCA\FilesReminders\AppInfo\Application;
1516
use OCA\FilesReminders\Db\Reminder;
1617
use OCA\FilesReminders\Db\ReminderMapper;
@@ -44,7 +45,7 @@ public function __construct(
4445
protected LoggerInterface $logger,
4546
protected ICacheFactory $cacheFactory,
4647
) {
47-
$this->cache = $this->cacheFactory->createDistributed('files_reminders');
48+
$this->cache = new WithLocalCache($this->cacheFactory->createDistributed('files_reminders'));
4849
}
4950

5051
public function cacheFolder(IUser $user, Folder $folder): void {

0 commit comments

Comments
 (0)