Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit cb7dafb

Browse files
author
the-djmaze
committed
Cleanup Cacher handling and added some documentation
1 parent 9c0d319 commit cb7dafb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,13 @@ protected function fabrica(string $sName, ?Model\Account $oAccount = null)
213213
case 'suggestions':
214214
$mResult = [];
215215
break;
216+
/* // See function Cacher
217+
case 'cache':
218+
$mResult = new \MailSo\Cache\Drivers\File(
219+
\trim($this->oConfig->Get('cache', 'path', '')) ?: APP_PRIVATE_DATA . 'cache'
220+
);
221+
break;
222+
*/
216223
}
217224
}
218225

@@ -460,6 +467,9 @@ public function DomainProvider(): Providers\Domain
460467
return $this->oDomainProvider;
461468
}
462469

470+
/**
471+
* bForceFile is only used by admin session token
472+
*/
463473
public function Cacher(?Model\Account $oAccount = null, bool $bForceFile = false): \MailSo\Cache\CacheClient
464474
{
465475
$sKey = '';
@@ -481,7 +491,6 @@ public function Cacher(?Model\Account $oAccount = null, bool $bForceFile = false
481491
\trim($this->oConfig->Get('cache', 'path', '')) ?: APP_PRIVATE_DATA . 'cache'
482492
);
483493
}
484-
// $sDriver = \strtoupper(\trim($this->oConfig->Get('cache', 'fast_cache_driver', 'files')));
485494
$oDriver->setPrefix($sKey);
486495

487496
$this->aCachers[$sIndexKey]->SetDriver($oDriver);

0 commit comments

Comments
 (0)