I recently bumped into a blog post where the person suggested to move the cache files to memory. My website creates cache files in html format and stores them on disk. With this method the folder is moved to memory apparently. It has significantly reduced the memory usage strangely.
Is this correct?
mount -t tmpfs -o size=1G,nr_inodes=10k,mode=0777,noatime,nodiratime tmpfs /path/to/cache/folder