In the past, I'd been using this script ( https://freeandthings.wordpress.com/201 … in-piwigo/ ) to do maintenance on my Gallery on a regular basis.
In my home server setup, I also run Nextcloud, which has a very nice feature - a cron.php file that you can call from a CRON job on your server on a regular basis, and it will do automated tasks for you without needing you to do it by hand (clean up cache, repair & compress the database, etc.).
Would it be possible to create such a file or command, either as a core function of Piwigo or as a plugin, so that a CRON job can be scheduled to run on the Piwigo system on a regular basis? This could be used to do things like:
- Generate missing thumbnails
- Optimize the database
- Clear the cache
Thank you!
Offline