Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Multi-level Cache
#7

(This post was last modified: 06-05-2016, 05:40 AM by allenlee.)

(06-03-2016, 10:36 PM)Diederik Wrote: Looks very interesting. Do you have some benchmarks results which shows how much benefit this splitting up the cache folders into multi levels give you if you have 100k cache files?

I don't have any benchmarks result. It is difficult to determine because different file system (FAT, NTFS, EXT3, EXT4, etc, ..) may has different result. Maybe It will not have any performance issue.. I am not sure about it.

Here is some interesting discussions

NTFS performance and large volumes of files and directories
How many files in a directory is too many? (Downloading data from net)

I set 2 levels sub-folders to separate cache files, the total sub-folders will be 36x36 = 1,296, each folder may store 5,000 files.
I made this just for avoiding some potential issues such as physical limit (for example: FAT has the limit 512 files in a folder), performance think.. 
Actually It is not necessary for small website, just share with Codeigniter friends because I like Codeigniter and use it to build my website, the community solves many my problems and I think I can share something, maybe someone else need it. 
Personal blog: https://terryl.in
My personal project is called Dictpedia is currently using Codeigniter 3, welcome.
Reply


Messages In This Thread
CodeIgniter Multi-level Cache - by allenlee - 06-03-2016, 06:01 PM
RE: CodeIgniter Multi-level Cache - by kilishan - 06-03-2016, 06:43 PM
RE: CodeIgniter Multi-level Cache - by zenepay - 06-03-2016, 10:11 PM
RE: CodeIgniter Multi-level Cache - by allenlee - 06-03-2016, 10:22 PM
RE: CodeIgniter Multi-level Cache - by Diederik - 06-03-2016, 10:36 PM
RE: CodeIgniter Multi-level Cache - by allenlee - 06-05-2016, 05:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB