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

Transient key conflict #15

Open
colis opened this issue Jan 27, 2022 · 0 comments
Open

Transient key conflict #15

colis opened this issue Jan 27, 2022 · 0 comments

Comments

@colis
Copy link

colis commented Jan 27, 2022

Hi,

I've spotted an error in the get_transient_key method of the Transient class which could cause a cache key conflict.

Basically the sprintf on line 220

$transient_key = sprintf(
	'wp-graphql-cache-%s',
	md5($zone),
	md5($cache_key)
);

has only one placeholder, therefore the hashed value of the $cache_key is never included in the transient key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant