Just reworking the PSB image caching so that it works in the background instead of when you make the post as large posts with lots of images bomb out.
We are currently at 2700 odd cached images after 2 weeks and am looking to come up with some form of directory structure for storing them.
Reading here ext3 - Wikipedia, the free encyclopedia
The maximum number of inodes (and hence the maximum number of files and directories) is set when the file system is created. If V is the volume size in bytes, then the default number of inodes is given by V/213 (or the number of blocks, whichever is less), and the minimum by V/223. The default was deemed sufficient for most applications. The max number of subdirectories in one directory is fixed to 32000.
Im thinking of a folder structure like this..
images/year/forum_id/thread_id/img_id-original-filename.ext
Hopefully including the year and forumID would overcome when we get more than 32k threads with images in a year.
Can anyone see any flaw in this?



LinkBack URL
About LinkBacks



Reply With Quote




Bookmarks