XF 1.5 Recalculate Xenforo attachments disk usage

Nicky Vermeersch

Active member
Hello. I optimized my images using pngoptim and optimjpg, which according to the logs had immense benefits. However when I go to the attachments browser it seems that the file sizes have not changed. How can I let xenforo recalculate these filesizes?
 
There isn't any tool to rebuild the file sizes as the files aren't expected to change. This is a tool you may need to build yourself.
 
There isn't any tool to rebuild the file sizes as the files aren't expected to change. This is a tool you may need to build yourself.
Allright Mike, thanks for the reply.
I suppose Xenforo gets its values from the file system during the upload in normal situations and stores them in the database? Or is that information embedded in the serialized internal_data folder?
 
The information is gathered during the upload process and stored in the DB.

You would effectively need to scan/fetch the existing attachments in the file system and update the DB with the new values.
 
Top Bottom