it is enough to call the expire function once
This commit is contained in:
parent
e159143165
commit
d6c1e5490d
|
@ -137,12 +137,7 @@ class Storage {
|
||||||
|
|
||||||
$versionsSize += $users_view->filesize('files'.$filename);
|
$versionsSize += $users_view->filesize('files'.$filename);
|
||||||
|
|
||||||
// expire old revisions if necessary
|
self::setVersionsSize($uid, $versionsSize);
|
||||||
$newSize = self::expire($filename, $versionsSize);
|
|
||||||
|
|
||||||
if ( $newSize != $versionsSize ) {
|
|
||||||
self::setVersionsSize($uid, $newSize);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue