I want to store the static cache of pages in the server cache folder. However, a large number of new page caches are generated every day, and they are frequently read and written.
For this situation, what is a good solution to avoid various limitations and performance issues?
I want to store the static cache of pages in the server cache folder. However, a large number of new page caches are generated every day, and they are frequently read and written.
For this situation, what is a good solution to avoid various limitations and performance issues?
File restrictions can be modeled on squid
’s hash into hierarchical directories; for performance, use SSD
.
If it is frequently read and written, what is the use of keeping it in the cache?
Enlarge the memory, set an expiration time, and write directly to the memory
redis memcache, etc.
Hash directory hierarchical storage, take the first few characters of the file name or other methods