Cron Job - Index+Thumbs

Paul L 4 years ago updated by Vlad R 4 years ago 1

Could you make a Cron Job that is metadata_index.php and make_thumbs.php combined?

If I run make_thumbs.php on an account the thumbs are generated fine but there is no data displayed when viewed in FileRun... and because the thumbs are already created, no data is ever generated.

If I run metadata_index.php and then make_thumbs.php then all the extra data is created as well as the thumbs.

It would be nice to have a function that could do all of this in one step.

You can add both commands in a shell script so that you can run both with the same command/cron task. A combined script would just do the same, with marginal performance gain.