[Freeswitch-docs] [Freeswitch-users] invalidating entries in http_cache?
Bote Man
bote_radio at botecomm.com
Wed Feb 25 21:12:14 MSK 2015
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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-docs/attachments/20150225/53aee182/attachment.html
Join us at ClueCon 2014 Aug 4-7, 2014
More information about the Freeswitch-docs
mailing list