vod_live_mapping_cache

The `vod_live_mapping_cache` directive configures caching behavior for live video mapping in NGINX's VOD module.

Syntaxvod_live_mapping_cache time | off;
Defaultoff
Contexthttp, server, location
Arguments1-3

Description

The vod_live_mapping_cache directive is utilized within the NGINX-based VOD Packager module to manage how live streaming content is cached. This directive supports a variable number of arguments (from one to three), allowing for fine-tuning of caching policies. When enabled, it can improve performance and reduce server load by caching segments of live video streams based on specified criteria. The parameters can influence aspects like cache duration and whether the cache should respect certain HTTP headers, which can affect cache validity and how requests are handled during live streaming events.

In the context of potential usage, you can specify how long segments are to be cached and if caching should be applied to all responses or just those meeting certain conditions. Parameters may include a time duration and flags that dictate caching behavior. The directive is designed to enhance the efficiency of streaming workflows, particularly under high-load scenarios, where repeated access to the same video segments can occur. For example, using an intelligent caching strategy could mean less strain on your backend services while providing a seamless experience for end users accessing live streams.

Config Example

vod_live_mapping_cache 10s;

Ensure proper values are set to avoid excessive caching of stale content.

Caching duration should be appropriate to live stream dynamics to avoid content lag.

If set to 'off', the directive does not cache responses, which may lead to high load on upstream servers.

← Back to all directives