After posting this question
page cache more than 100K files inside a single directory?
I’ve been look into how page caching works.
Now I’ve rewritten page_cache_file(path) (Module
ActionController::Caching::Pages::ClassMethods). now it will divide
page_cache files into subdirectories to avoid more than 10K files to be
stored inside a single directory. (788.html-> 0/788.html; 79780.html->
But since the default save path being changed, rails generate the
content from database ignoring the cached files.
so, I need to let rails know that cache files’ location are changed
Digging for hours, I couldn’t get any idea on how rails check and fetch
page cache files.
Can anyone give me a clue?