Skip to content

Extend Cache Policy to support more configuration parametersΒ #8341

@thresheek

Description

@thresheek

Is your feature request related to a problem? Please describe.
Currently, on 5.2.0, Cache Policy doesnt allow users to specify inactivity and use_temp_path parameters as available for proxy_cache_path directive. This means that users cant set the inactive cache lifetime and are forced to spend disk IO on moving the cache files (e.g. when using a StatefulSet and a separate volume).

Those are the options that were specifically asked by the customers.

Additionally, it's not possible to configure:

  • anything cache manager related in proxy_cache_path - max_size, min_free, manager_* which are crucial to maintain the filesystem usage for caches

  • loader_* is less widely used, but sometimes tuning can be beneficial in the scenarios where NGINX is restarted and needs to prime the cache info

  • proxy_cache_key which would allow users to redefine the caching keys for the cache items

  • proxy_cache_use_stale and proxy_cache_revalidate are useful to minimize the impact on backends when updating the expired cached items

  • proxy_no_cache and proxy_cache_bypass would allow to bypass the caching for specific requests

  • proxy_cache_lock* directives are useful for highly loaded services, eliminating the pressure on backends

Describe the solution you'd like
A support for aforementioned items in the Cache Policy

Describe alternatives you've considered
Snippets can still be used to implement the desired functionality.

Metadata

Metadata

Assignees

Labels

backlogPull requests/issues that are backlog itemsproposalAn issue that proposes a feature requestrefinedIssues that are ready to be prioritized

Type

No type

Projects

Status

In Progress πŸ› 

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions