[Freeswitch-users] invalidating entries in http_cache?
Christopher Rienzo
cmrienzo at gmail.com
Wed Feb 25 18:39:53 MSK 2015
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-users/attachments/20150225/173c1497/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list