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

Stop connecting to CacheStore before it's required to do an action #48

Closed

Conversation

genesiscz
Copy link

Fixes #47

@genesiscz genesiscz closed this Oct 6, 2023
@genesiscz
Copy link
Author

genesiscz commented Oct 6, 2023

Fixed by 9052a1f

@genesiscz genesiscz deleted the stop-unnecessary-connections branch October 6, 2023 16:18
@swayok
Copy link
Owner

swayok commented Oct 6, 2023

It is a very bad idea to use app() outside of your project's code (and even there you should avoid it as much as possible). In packages it should not be used actually. Yeah, I used app() here a long time ago, before I learned that it was a bad idea =) Now it also was fixed.

@genesiscz
Copy link
Author

I know, but since I didn't run the tests and CI doesn'T have it, I didn't want to risk too much here haha

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

Successfully merging this pull request may close these issues.

Package connects with PHP-Redis (or both) at the start due to call to ->getWrappedConnection()
2 participants