Skip to content

Add wildcard cache key deletion for device type cache purge#203

Merged
pradeep910 merged 2 commits intomasterfrom
feature/add-wildcard-keys-deletion
Jul 1, 2019
Merged

Add wildcard cache key deletion for device type cache purge#203
pradeep910 merged 2 commits intomasterfrom
feature/add-wildcard-keys-deletion

Conversation

@pradeep910
Copy link
Copy Markdown
Collaborator

@pradeep910 pradeep910 commented Apr 26, 2019

Adds wildcard check to delete device type cache such as <URL>--*.

This requires following filter as URLs will not contain --* by default.

add_filter( 'rt_nginx_helper_purge_url', function( $url ) {
       // Add wildcard in cache key URL for all device type keys deletion.
       $url = $url . '--*';
       return $url;
});

For #202

@pradeep910 pradeep910 requested a review from chandrapatel April 26, 2019 15:27
@radhe
Copy link
Copy Markdown
Member

radhe commented May 27, 2019

@kirtangajjar @th3karkota
can you do the testing?

@pradeep910 pradeep910 merged commit a871cd4 into master Jul 1, 2019
@pradeep910
Copy link
Copy Markdown
Collaborator Author

We've merged this plugin after testing it on one of our live sites.
cc @chandrapatel @kirtangajjar @radhe

@thrijith thrijith deleted the feature/add-wildcard-keys-deletion branch July 31, 2019 07:59
@thrijith thrijith mentioned this pull request Jul 31, 2019
@pradeep910 pradeep910 mentioned this pull request Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants