Add quiet flag to StoredFile delete to avoid unnecessary sentry errors when clearing library
This commit is contained in:
parent
9d822b6e8b
commit
bff04820f2
2 changed files with 10 additions and 7 deletions
|
@ -509,11 +509,11 @@ class PreferenceController extends Zend_Controller_Action
|
|||
$files = CcFilesQuery::create()->find();
|
||||
foreach ($files as $file) {
|
||||
$storedFile = new Application_Model_StoredFile($file, null);
|
||||
$storedFile->delete();
|
||||
// Delete the files quietly to avoid getting Sentry errors for
|
||||
// every S3 file we delete.
|
||||
$storedFile->delete(true);
|
||||
}
|
||||
|
||||
/* TODO: delete hard copies of files? */
|
||||
|
||||
$this->getResponse()
|
||||
->setHttpResponseCode(200)
|
||||
->appendBody("OK");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue