We have 1M files being cached in one directory. We own a top 2,000 web site in the world with about 100 servers using Nginx.
We need to improve this such that it caches using the first 4 letters of an 8 digit unique code.
Like this
image_ABCDEFGH.jpg
should cache on the file system like
A/B/C/D/image_ABCDEFGH.jpg
Right now all 1 million files just are stored in one directory which under Linux isn't the best method for the file system (Ext3).
Please HELP! Paid job!