This is how you properly configure RAMdisk in your Magento 2 installation:
- Discover your RAMDisk control in control panel >> My Products >> Web Hosting >> Hosting Detail >> Caching >> RAMDisk
- Enter the following path in your RAMDisk path:
www/var/cache
- Click on “add a RAM-disk”
ATTENTION: The path should start from the root directory of your hosting account. The path should be www/var/cache rather than var/cache