mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-02 03:26:06 -04:00
folding Persistance\PurgeLimiter into Data\Filesystem
This commit is contained in:
parent
f46221e7c3
commit
ae486d651b
5 changed files with 94 additions and 46 deletions
|
@ -67,6 +67,7 @@ class Model
|
|||
public function purge()
|
||||
{
|
||||
PurgeLimiter::setConfiguration($this->_conf);
|
||||
PurgeLimiter::setStore($this->_getStore());
|
||||
if (PurgeLimiter::canPurge()) {
|
||||
$this->_getStore()->purge($this->_conf->getKey('batchsize', 'purge'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue