To keep my server running smoothly, I use crontab to schedule release of cache files:
sudo crontab -e
This schedules the tasks to run at 5:01 am and 5:02 each day.
Sudo sync is used to write and currently used data buffers to non volatile memory
The next command then frees up space in the non-volatile