vod_drm_info_cache

The `vod_drm_info_cache` directive configures caching behavior for DRM information in the NGINX-based VOD Packager module.

Syntaxvod_drm_info_cache duration | size | zone;
Defaultnone
Contexthttp, server, location
Arguments1-3

Description

The vod_drm_info_cache directive allows for the specification of caching parameters for DRM (Digital Rights Management) information, which is vital in protecting content during streaming or downloading. This directive can be set in the contexts of http, server, and location, providing flexibility in deployment based on your overall server and application structure. When set, it can take up to three arguments specifying the cache duration, the maximum size of the cache, and the specific caching zone, thereby allowing detailed tuning of how DRM-related data is stored and retrieved.

The behavior of this directive can significantly impact performance and security, since DRM information must be quickly accessible during stream requests to ensure seamless playback while maintaining the necessary encryption and security protocols. By efficiently caching this information, you reduce the overhead of repeated DRMs fetch operations from the source files, which can be resource-intensive, especially for larger VOD implementations. Users must ensure that cached data is consistent and secure in order to prevent unauthorized access to the digital content being served.

Different configurations might be required based on the traffic load and server capabilities, and as such it’s recommended to monitor the server performance and obtain insights into cache hit ratios, which can guide further optimizations to the caching strategy defined by this directive.

Config Example

vod_drm_info_cache 10m 100m drm_cache_zone;

Ensure that the cache duration aligns with DRM content validity periods to avoid serving stale or invalid information.

Over-caching may lead to rapid growth of storage space used by cached DRM information, so monitor cache size appropriately.

Incorrect parameter specification may result in fallback to default behavior, possibly affecting performance.

← Back to all directives