Fixed minor oversight in delete() method on AutoDatasource

This commit is contained in:
Luke Towers 2018-11-15 15:14:05 -06:00
parent 45bd2654fc
commit 38fe4af1e6
1 changed files with 3 additions and 3 deletions

View File

@ -292,9 +292,6 @@ class AutoDatasource extends Datasource implements DatasourceInterface
try {
// Delete from only the first datasource
$this->datasources[0]->delete($dirName, $fileName, $extension);
// Refresh the cache
$this->populateCache(true);
}
catch (Exception $ex) {
// Check to see if this is a valid path to delete
@ -313,6 +310,9 @@ class AutoDatasource extends Datasource implements DatasourceInterface
throw (new DeleteFileException)->setInvalidPath($path);
}
}
// Refresh the cache
$this->populateCache(true);
}
/**