folding Persistance\PurgeLimiter into Data\Filesystem

This commit is contained in:
El RIDO
2021-06-07 21:53:42 +02:00
parent f46221e7c3
commit ae486d651b
5 changed files with 94 additions and 46 deletions

View File

@@ -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'));
}