either they are not re using the cache due to cache expiry or other reason not to cache. A corn job should be able to clean up older files in this for, or could even look at the metadata and kill stale cache files. I don't think we have any code or script to do this currently. A script or patch for a command to do that would be a nice addition
On Friday, August 26, 2016, Lin, Xiaoping <xlin@soleocommunications.com> wrote:
Hello,
We are developing an app using httapi (FreeSwitch 1.6). Our installation and support engineer reported cached audio files have been dumped under
/var/lib/freeswitch/storage/
http_file_cache
They are not cleaned and take all the disk space after running for a period time. The files list look like:
-rw------- 1 freeswitch daemon 124 Aug 12 16:28 ef98679d646e00a3a6f5b9265a6b8a
21.meta -rw------- 1 freeswitch daemon 91192 Aug 12 16:28 ef98679d646e00a3a6f5b9265a6b8a
21.wav -rw------- 1 freeswitch daemon 137 Aug 16 15:19 f02875bcd1db251e20d286d57aaff3
73.meta -rw------- 1 freeswitch daemon 40660 Aug 8 21:21 f02875bcd1db251e20d286d57aaff3
73.wav -rw------- 1 freeswitch daemon 124 Aug 12 15:51 f7b50a0efadb7dd589d37ba00115c8
d1.meta -rw------- 1 freeswitch daemon 91192 Aug 12 15:51 f7b50a0efadb7dd589d37ba00115c8
d1.wav -rw------- 1 freeswitch daemon 124 Aug 10 14:08 feb0d10f984b4ea85e9f6645f561bb
f4.meta -rw------- 1 freeswitch daemon 91192 Aug 10 14:08 feb0d10f984b4ea85e9f6645f561bb
f4.wav
Even the files are the same, it was saved with different file names and never got cleaned.
Anyone has the same problem and what is the correct way to deal with this?
Many thanks!
- Xiaoping