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

How to cache internal https requests #3304

Closed
dawkaka opened this issue Dec 19, 2023 · 1 comment
Closed

How to cache internal https requests #3304

dawkaka opened this issue Dec 19, 2023 · 1 comment

Comments

@dawkaka
Copy link

dawkaka commented Dec 19, 2023

I have a middleware whose constructor makes an HTTP call to get some credentials, these credentials don't change
and with each request that HTTP call is made which makes the requests slow, is there a way to cache the response after the first call and then use it for subsequent calls? does slim PHP have a global cache I can add these credentials to?

@odan
Copy link

odan commented Dec 19, 2023

Slim itself does not provide a built-in caching system, but you can integrate any (PSR-6 or PSR-16) caching libraries.

@akrabat akrabat closed this as completed May 1, 2024
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

3 participants