So, what I did was take that line of code and make a script with it. Nothing fancy, in fact it's kinda ugly, but it works, so going to put it here so others can implement it if they want to. This is the file I created and the folder I put it in: /volume1/misc/clearcache.sh
Code: Select all
#!/bin/sh
sync; echo 3 > /proc/sys/vm/drop_caches
#    echo "Clearing Cache.." >> /volume1/misc/clearcache.log
#    date >> /volume1/misc/clearcache.log/var/spool/cron/crontabs/root (Notice the file name is root with no extension!!!)
Add this line to make the script run every 5 minutes to clear the cache.
Code: Select all
*/5   *   *   *   *   /volume1/misc/clearcache.shI'm not making ANY PROMISES here, and part of this is actually from Albert Xui from Asustor. I just took his idea and made the script and the cron job. If it works, drop a line here and let us know you aren't locking up any more...