Skip to content

Conversation

@gtenev
Copy link
Contributor

@gtenev gtenev commented Mar 19, 2020

Cherry-picked the following features (commits) into 8.1.x branch:

In addition cherry-picked some isolated cachekey related changes
from the following commits to branck 8.1.x:

@gtenev gtenev added this to the 8.1.0 milestone Mar 19, 2020
@gtenev gtenev self-assigned this Mar 19, 2020
gtenev added 4 commits March 23, 2020 09:31
In certain use-cases when calculating the prefix (the initial value
of the new cache key) we need to have the scheme, host and port in
their original form from the request URI, i.e. when hosting.config
is used the cache key is expected to contain a valid URI authority
element used for volume selection.

More details about the new parameter and its functionality can be
found in doc/admin-guide/plugins/cachekey.en.rst

(cherry picked from commit 0f86efc)
Added ability to apply all transformations, available for modifying
the cache key, to parent selection URL:
* --key-type=cache_key - apply transformations to  cache key
* --key-type=parent_selection_url - apply transformations to
  parent selection URL

TODO/TBD: After this change all transformations can be applied not
only to the cache key but to parent selection URL as well. It would
make sense to give the cachekey plugin a new, more suitable name.

(cherry picked from commit af7299d)
Allow multiple target types to be specified for `--key-type` so the
operator can apply the same modifications to both cache key and parent
selection url at the same time without chaining cachekey plugin
instances.

Instead of:

    @plugin=cachekey.so \
        @pparam=--key-type=parent_selection_url \
        @pparam=--remove-all-params=true
    @plugin=cachekey.so \
        @pparam=--key-type=cache_key \
        @pparam=--remove-all-params=true

to write:

    @plugin=cachekey.so \
        @pparam=--key-type=parent_selection_url,cache_key \
        @pparam=--remove-all-params=true

(cherry picked from commit db8cd14)
Cherry-picked some isolated cachekey related changes
from the following commits to branck 8.1.x:
  aa58b6e Ran clang-format
  4cfd5a7 Ran make clang-tidy
  8e451b7 Fixes spelling in plugins
  7651e26 Ran clang-tidy with modernize-use-default-member-init
  d77cd73 Ran clang-tidy
@apache apache deleted a comment from gtenev Mar 23, 2020
@randall randall changed the title Add cachekey latest features to 8 1 x Add cachekey latest features to 8.1.x Mar 23, 2020
@gtenev gtenev merged commit 2a70ee8 into apache:8.1.x Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants