I have added the API example on Confluence. When Chris replies with an example of the file parameter I will add that as well. Bote From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Christopher Rienzo Sent: Wednesday, 25 February, 2015 10:40 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] invalidating entries in http_cache? FYI: FS-7323 was just committed to master that provides new ways to invalidate cached files. new API: http_cache_remove <url> new file param: {refresh=true} Also- if you want your cached files to be refreshed sooner, set the expiration server side with max-age or change the default config if max-age is not set. Chris On Sat, Feb 7, 2015 at 7:52 AM, <cmrienzo@gmail.com> wrote: I recommend giving all files and their updates unique names. If you can't go that, removal from the file system will trigger a new download.
On Feb 7, 2015, at 04:19, Neil Patel <neilp@cs.stanford.edu> wrote:
Hi All,
We are using mod_http_cache to store remote media for playback over IVR (lua). Once in a while the file at source gets updated/overwritten, so we want FS to be able to detect an invalid cache entry and re-download from the given URL.
Is there a way to dirty/clear a single http_cache entry? I don't believe there is a checksum mechanism, but that would do the trick. Is there a way to force-download a URL? Neither http_pre_fetch nor http_get does this. I don't see any way in the docs, so am considering managing this independently and manually removing files from the http_cache folder when we overwrite a source file.
Thanks, Neil
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org