CLI command to rebuild attachment thumbnails

Kirby

Well-known member
Licensed customer
The rebuild commands are xf-rebuild:kirby-xfmg-media-thumbnails, xf-rebuild:kirby-xfmg-album-thumbnails and
xf-rebuild:kirby-attachment-thumbnails.

The XFMG commands will only work if XFMG is installed though (otherwise they will log an error).
 

Attachments

Last edited:
Seems to work, running xf-rebuild:kirby-attachment-thumbnails now.

Thanks!

Edit: Let's see how long it takes to process 1.5 million files :)
 
If you're running the command to rebuild thumbnails and you get disconnected. Is there a command you can run to start rebuilding from the point where you left off?
 
Nope. Jobs executed via CLI are not designed to be resumable.
I'd suggest to execute a long-running job as a nohup background process.
 
The rebuild commands are xf-rebuild:kirby-xfmg-media-thumbnails, xf-rebuild:kirby-xfmg-album-thumbnails and
xf-rebuild:kirby-attachment-thumbnails.

The XFMG commands will only work if XFMG is installed though (otherwise they will log an error).
Hey @Kirby - will this still work in XF 2.2.17?

I tried running php /home/mysite/public_html/cmd.php xf-rebuild:kirby-attachment-thumbnails and got "command failed with return code 255" message.
 
Last edited:
Back
Top Bottom