chore: remove cloud storage remainings (#1934)
This commit is contained in:
parent
0e6b0da142
commit
703a8e5856
33 changed files with 50 additions and 3571 deletions
|
@ -465,7 +465,6 @@ class PreferenceController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
$this->deleteFutureScheduleItems();
|
||||
$this->deleteCloudFiles();
|
||||
$this->deleteStoredFiles();
|
||||
|
||||
$this->getResponse()
|
||||
|
@ -499,20 +498,6 @@ class PreferenceController extends Zend_Controller_Action
|
|||
}
|
||||
}
|
||||
|
||||
private function deleteCloudFiles()
|
||||
{
|
||||
try {
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
||||
foreach ($CC_CONFIG['supportedStorageBackends'] as $storageBackend) {
|
||||
$proxyStorageBackend = new ProxyStorageBackend($storageBackend);
|
||||
$proxyStorageBackend->deleteAllCloudFileObjects();
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
Logging::info($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private function deleteStoredFiles()
|
||||
{
|
||||
// Delete all files from the database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue