• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 "Rebuild attachment thumbnails" using cli

#1
I want to rebuild the attachments but because I have many the browser tool dies with a timeout.
How do run the same thing using the cli without a timeout to make sure it finishes correctly?
 

Chris D

XenForo developer
Staff member
#2
Realistically that shouldn't happen.

We run it in batches of 100, but the batch can only take a maximum of 8 seconds (by default).

What timeout is it hitting? Maximum execution time in PHP? If so, what is that set at? It usually defaults to 30 seconds. You might want to consider raising it to 60.

There's no way currently to run this one via the CLI.
 

Chris D

XenForo developer
Staff member
#4
Should be fine as long as the maximum execution time is reasonable. 10 seconds is rather unusual as it defaults to 30. I think you'll be ok with 60.