-
Notifications
You must be signed in to change notification settings - Fork 17
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
Getting constant misses using API Platform #43
Comments
Hello @derTuca I'll try to find why that behavior happens. I suspect the |
@derTuca please take a look at this PR from @JacquesDurand api-platform/api-platform#2383 maybe it can help to get some hit. |
Thank you! The config works and I get hits, however, now I try to get cache invalidation working and I get a permanent redirect to https://localhost/souin-api/souin (I use localhost since I don't use the distribution on this machine), which errors out due to bad/no SSL certificates. Is this expected behavior? |
Uh oh, I spoke too soon! It seems that building with |
That's because the Souin repository is getting updated faster than the cache-handler one (because the cache-handler is supposed to be the stable version of Souin). |
Ok, I understand. Should I open a new issue related to the https redirect in this case and leave this issue to track merging that change into cache-handler? |
The scheme is not part of the key, I think we have to add it. |
Can you try with the latest release please? |
Sorry for the late response, I had to take a leave. Unfortunately I am getting constant misses once again with the latest version. What logs can I output that could help with debugging? Thanks! |
Hello, every logs you can paste will help to debug |
The response header is the following: Pasting the logs from the caddy service for a GET request that should have been cached:
This is my current Caddyfile:
|
Hello, thanks for the logs. Can you enable the Souin api please?
Send the first request to cache, after that go to |
Yes, the key is in the cache. I get the following response: ["GET-https-api.dev.example.com-/users/7{-VARY-}Accept:*/*;Content-Type:;Authorization:bearer REDACTED_TOKEN;Origin:","STALE_GET-https-api.dev.example.com-/users/7{-VARY-}Accept:*/*;Content-Type:;Authorization:bearer REDACTED_TOKEN;Origin:"] |
I found the issue, I'm storing the varied headers value as lower cases |
Hi,
I am tying to setup this module with an API Platform setup (not running in Docker, but standard PHP-FPM). I have configured Caddy as can be seen below, but I am getting constant misses (I do not get any hits).
Here is my Caddyfile:
Here are my request headers:
Here are my response headers:
Looking at the Caddy logs, all I get is:
Is there anything I am missing here? Thank you!
The text was updated successfully, but these errors were encountered: