Open nvtienlg opened 3 months ago
There is no support for cache invalidation, mainly because it won't help when there's a CDN in front of this module.
What you can do instead is make a change to the URL - assuming you have some API that generates the master.m3u8 URL to the player, you can make a change there, the module will "see" a new URL, and will perform the mapping request again.
For example, initially you return http://yourdomain/path/version/1/master.m3u8
, after the transcoding is finished, you return http://yourdomain/path/version/2/master.m3u8
.
Thank you very much, got your point. What we done, base on your suggestion:
With that config seem we can update master playlist while keep using cache for media segments
We are testing this module with mapped mode. Everything is working fine, however we don't know how to clear json cache to refetch it
How to force the Module to call api to refresh the json cache for given {videoId} ? We can set expiration for vod_mapping_cache, but that affects all videos, lets say calling to api is costly
Hope you understand the case. Thank you very much for great module