Calculate folder size with a cron
Since oversized folders cannot be queried via the file system, it should be possible to calculate the folder size via a cron.
The query about the file system is depending on the files. The current solution works for smaller to medium sized pages. For pages with more than 10,000 files the calculation takes a few seconds.
This is not very advantageous. The cron should then write the size of the folder into the media table. If there is the size property of a folder this must be used and should not be passed over the filesystem.
-
Extend the media database table with a size field -
Create a media size calulation cron
It must be verified whether queues can also be used.