Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jul 1, 2019

Conversation

Projects
None yet
3 participants
@pradeep910
Copy link
Collaborator

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

Show resolved Hide resolved admin/class-phpredis-purger.php Outdated
Show resolved Hide resolved admin/class-phpredis-purger.php
Show resolved Hide resolved admin/class-phpredis-purger.php
Show resolved Hide resolved admin/class-phpredis-purger.php Outdated
Show resolved Hide resolved admin/class-predis-purger.php Outdated

@pradeep910 pradeep910 requested a review from chandrapatel Apr 26, 2019

@radhe

This comment has been minimized.

Copy link

commented May 27, 2019

@kirtangajjar @th3karkota
can you do the testing?

@pradeep910 pradeep910 merged commit a871cd4 into master Jul 1, 2019

1 check passed

WIP Ready for review
Details
@pradeep910

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.