Mod_http_cache in version 1.10.8 is not working

Caching files stopped working after upgrade.

First file that is in playback is saved as: storage/http_file_cache/00000000000000000000000000000000.wav

And after that all files are played as this cache. Basically it doesn’t cache files anymore and always pulls this one from cache.

This is the log when it is first cached:

EXECUTE [depth=0] sofia/external/041600611@ playback(
2023-01-10 23:59:45.823739 97.05% [DEBUG] mod_httapi.c:2665 caching: url: to C:/Program Files/FreeSWITCH/storage/http_file_cache/00000000000000000000000000000000.wav (344649 bytes)

It looks like it doesn’t pass file name down to http_cache or it is passed as 00000…

I checked source code of this module and there is some md5 functions that hash name. Could this function returns 00000000… as name? We are using FS on windows, but version 1.10.7 works ok.

I haven’t seen a ticket on this in Github, can you make sure its filed and we can look at it?

Hi! I opened an issue in github ( #1926)

Thanks for the update, We’ll review.


I tested the commit. It works. Thank you :slight_smile:

1 Like