more efficient method to purge all old versions and deleted files

This commit is contained in:
Ralf Becker 2016-01-21 19:42:30 +00:00
parent 0ae7ba40ce
commit 24dea3f2d8

View File

@ -174,8 +174,14 @@ class filemanager_admin extends filemanager_ui
{
$msg = lang('Directory "%1" NOT found!', $content['versionedpath']);
}
// shortcut to efficently delete every old version and deleted file
elseif ($content['versionedpath'] == '/' && $content['ctime'])
{
$msg = lang('%1 files deleted.', Versioning\StreamWrapper::purge_all_versioning());
}
else
{
@set_time_limit(0);
$deleted = $errors = 0;
Vfs::find($content['versionedpath'], array(
'show-deleted' => true,