Skip to content

cachekey: allow multiple values for --key-type - #5945

Merged
bryancall merged 1 commit into
apache:masterfrom
gtenev:cachekey_multiple_target_types_at_once
Oct 17, 2019
Merged

cachekey: allow multiple values for --key-type#5945
bryancall merged 1 commit into
apache:masterfrom
gtenev:cachekey_multiple_target_types_at_once

Conversation

@gtenev

@gtenev gtenev commented Sep 17, 2019

Copy link
Copy Markdown
Contributor

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

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
@gtenev gtenev added this to the 10.0.0 milestone Sep 17, 2019
@gtenev
gtenev requested a review from ezelkow1 September 17, 2019 18:33
@gtenev gtenev self-assigned this Sep 17, 2019
@gtenev
gtenev requested a review from mlibbey September 17, 2019 18:34
@bryancall
bryancall merged commit db8cd14 into apache:master Oct 17, 2019
@zwoop

zwoop commented Oct 17, 2019

Copy link
Copy Markdown
Contributor

Cherry-picked to v9.0.x branch.

@bryancall

bryancall commented Oct 17, 2019

Copy link
Copy Markdown
Contributor

@gtenev If you want to put this into 8.0.x please create another PR with a cherry-pick -x.

@zwoop zwoop modified the milestones: 10.0.0, 9.0.0 Oct 17, 2019
@zwoop zwoop modified the milestones: 9.0.0, 8.1.0 Mar 26, 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.

3 participants