public function video_conversion::run_queue in Video 6.4
Same name and namespace in other branches
- 7 includes/conversion.inc \video_conversion::run_queue()
Our main function to call when converting queued up jobs.
File
- includes/
conversion.inc, line 29
Class
Code
public function run_queue() {
if ($videos = $this
->load_job_queue()) {
foreach ($videos as $video) {
$this
->process($video);
}
//clear cache once completed the conversion to update the file paths
cache_clear_all('*', 'cache_content', true);
}
}