The EasyDSS video platform does not need to install plug-ins to watch video streaming live, the web page directly play, through the browser into the platform can be configured, for users, convenient and controllable, no need to build a server, for enterprises to establish live or on-demand platforms have great advantages.
If the CACHE hits, also called cache hit, the CPU can quickly get the value at this address. Therefore, EasyDSS will generate cache, but the cache cannot be cleaned regularly, resulting in too many MP4 files, occupying disk space and wasting resources.
In this article we share a method for periodically clearing this cache. Start by writing a simple shell script to clean up data from 24 hours ago:
At this point, we need to give the script an execution permission as follows:
Write crontab to run the script as a scheduled task:
After setting, the script will be automatically executed at 23:00 every day to clean the cache cache data generated by EasyDSS, so that the cache cache of 24 hours will be saved, and the cache cache of 24 hours before will be automatically cleared, saving disk space.