XF 1.5 Recalculate Xenforo attachments disk usage

#1
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?
 

Mike

XenForo developer
Staff member
#2
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.
 
#3
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?
 

Brogan

XenForo moderator
Staff member
#4
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