Skip to content

Commit

Permalink
perf(files_reminders): Wrap with local cache
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Jan 24, 2025
1 parent c0b22ed commit 17d93de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_reminders/lib/Service/ReminderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use DateTime;
use DateTimeZone;
use OC\Memcache\WithLocalCache;
use OCA\FilesReminders\AppInfo\Application;
use OCA\FilesReminders\Db\Reminder;
use OCA\FilesReminders\Db\ReminderMapper;
Expand Down Expand Up @@ -44,7 +45,7 @@ public function __construct(
protected LoggerInterface $logger,
protected ICacheFactory $cacheFactory,
) {
$this->cache = $this->cacheFactory->createDistributed('files_reminders');
$this->cache = new WithLocalCache($this->cacheFactory->createDistributed('files_reminders'));
}

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

0 comments on commit 17d93de

Please sign in to comment.