vod_mapping_cache

The `vod_mapping_cache` directive controls the caching behavior for video on demand mappings in NGINX-based VOD package operations.

Syntaxvod_mapping_cache on | off | ;
Defaultoff
Contexthttp, server, location
Arguments1-3

Description

The vod_mapping_cache directive is crucial for managing the caching of video content specified in mappings for NGINX's video on demand (VOD) streaming capabilities. This directive can accept up to three parameters that determine how the caching should be handled. The parameters enable granular control over whether the mapping responses should be cached, how long they should be cached, and under what conditions caching should occur. The caching mechanisms ensure that repeated requests for the same video content can be served more efficiently, reducing the load on the server and improving response times for users.

When utilizing this directive, it is placed within different contexts such as http, server, or location, allowing for application-specific configurations. Each context can tailor the caching behavior specific to the location of the media or client requirements. The first parameter signifies whether caching is enabled, while subsequent parameters can specify the expiration time of the cache and additional caching rules such as cache validation techniques. This configuration is particularly useful in scenarios with high demand for specific VOD content, ensuring performance optimizations through effective caching strategies.

Config Example

location /video {
    vod_mapping_cache on 10m;
    # Other configurations...
}

Caching is off by default, so ensure to enable it explicitly if desired.

Be aware of how cache duration affects content delivery and update schedules.

Check for conflicts with other caching mechanisms or directives set in your NGINX configuration.

← Back to all directives