����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.191.36.245 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/ideyshare.name.ng/app/tasks/ |
Upload File : |
<?php /* * Title: Delete Redundant Files * Author: YetiShare.com * Period: Every 1 hour * * Description: * Script to delete any files which are no longer accessed * * How To Call: * On the command line via PHP, like this: * php delete_redundant_files.cron * * Configure as a cron like this: * 0 * * * * php /path/to/yetishare/app/tasks/delete_redundant_files.cron.php */ namespace App\Tasks; // include framework use App\Core\Framework; use App\Helpers\BackgroundTaskHelper; use App\Helpers\FileHelper; require_once(realpath(dirname(__FILE__).'/../core/Framework.class.php')); // setup light environment Framework::runLight(); // background task logging BackgroundTaskHelper::start(); // delete any old files FileHelper::deleteRedundantFiles(); // clear trash folders FileHelper::deleteTrashedFiles(); // background task logging BackgroundTaskHelper::end();