
Follow this Tutorial article, Step by Step, I hope you understand with this article, no special skills required
What is Cron Job?
A cron job is a Linux command used for scheduling tasks to be executed sometime in the future. This is normally used to schedule a job that is executed periodically, for example, to send out a notice every morning etc
Delete Expired Video Files
- This command is for deleting expired video files
- Cron : * * * * *
- Change SERVER_PATH to your path
Example Command :
- /usr/local/bin/php /home/SERVER_PATH/Application/artisan uploads:delete-expired >> /dev/null 2>&1
Deleting the files and chunks that uploaded by users and not completed
This commands is for deleting the files and chunks that uploaded by users and example : (when user left before upload completed).
- Cron :25 * * * *
- Change SERVER_PATH to your path
Example Command :
- /usr/local/bin/php /home/SERVER_PATH/Application/artisan uploads:clear >> /dev/null 2>&1