
This is a powerful RAM disk program that allows you to have the disk of your computer that is completely stored in memory. This means less data destruction on hard drives, speedier app start-up times and a reduction in temporary files stored on the hard drive, and less stress on the hard disk.
The cache folder will be mounted temporary, and won’t be mounted at the next reboot.OftPerfect RAM Disk offers an opportunity to utilize the power of your system efficiently by using memory as an alternative to memory space on the hard drive. You should customize the size options depending how much free ram you have.īe careful, don’t forget to specify the full path of your cache folder.
-o to specify options including size you want to allocate. Tmpfs is a filesystem which was originally scheduled to store temporary files (tmp) as the same suggest.īe careful, the following commands require SSH access and root privileges. We will simply create a tmpfs volume and mount it. The cache files are automatically regenerated, so it’s doesn’t really matter if you loose it. Indeed if you restart the server all the data in the RAM is flushed due to the lack of persistence. It is a common practice we use for files of low importance. You can save several precious milliseconds with this solution. To take advantage of good performance if you are using a HDD a good solution is to mount the cache folder directly in your RAM. Problem ? SSD are more expensive, and still less common than mechanical drives. The best solution is to use SSD for excellent performance compared to HDD. The HTML files are stored on the server, displaying the web page will be dependent on the hard drive reading speed (and writing for saving pages). Thus when a visitor requests a page, the stored file will be directly displayed without any database requests. SQL language (for communication with the database) is often a bottleneck.Ī cache system saves each page directly in the server (HTML files). Sometimes, this mechanism can be very long. Finally, it loads the contents of the current page (with database requests).
Then, WordPress queries the database to find out which themes and plugins are to load. Without a cache system, when a visitor access a webpage, WordPress loads first. Note : This tricks is only suitable for dedicated serversĪ static cache system like WP Rocket stores all the website pages as HTML files.