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

VersionProvider always write to cache #10889

Closed
lekoala opened this issue Jul 28, 2023 · 1 comment
Closed

VersionProvider always write to cache #10889

lekoala opened this issue Jul 28, 2023 · 1 comment

Comments

@lekoala
Copy link
Contributor

lekoala commented Jul 28, 2023

Affected Version

4/5

Description

Thanks to the new Cache tab I added to debugbar, i've realised that VersionProvider is always setting the cache due to an invalid cache key (somehow it's not throwing an exception i guess the adapter silently rewrites the key and therefore it's never found when using get)

as per psr 6

According to PSR-6 the following characters could be used in a valid cache key; A-Z, a-z, 0-9, _, and .. Some characters are forbidden like: {}()/@:. If you use any of the forbidden characters you will get an exception. Other characters (like -) are not forbidden nor valid. It is up to the implementation if they support that character or not.

current key includes / and \ due to the path being used

Steps to Reproduce

  • open a page
  • set method is called each time
  • visible in debugbar

PRs

@GuySartorelli
Copy link
Member

Merged pr. It'll be automatically tagged when CI has finished running on it.
Thanks for contributing that!

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

Successfully merging a pull request may close this issue.

3 participants