]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/CronJobs.php
Merge pull request #8272 from MrPetovan/bug/8254-regex-url-img
[friendica.git] / src / Worker / CronJobs.php
index 5487b35d6725d35597e8ecb566350d9907a4f20d..b66358b0e820d140e5a8bd057f891d6843bf9603 100644 (file)
@@ -1,14 +1,29 @@
 <?php
 /**
- * @file src/worker/CronJobs.php
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
  */
+
 namespace Friendica\Worker;
 
 use Friendica\App;
-use Friendica\Core\Config;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
-use Friendica\Core\StorageManager;
 use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\Database\PostUpdate;
@@ -226,7 +241,7 @@ class CronJobs
                        }
                }
 
-               Config::set('system', 'cache_last_cleared', time());
+               DI::config()->set('system', 'cache_last_cleared', time());
        }
 
        /**