Skip to content
Discussion options

You must be logged in to vote

@simplecommerce this is intentional behavior. the responseCachePlugin splits PUBLIC cache entries into two buckets: one for requests where sessionId returns null (logged out users) and one where it returns a non-null value (logged in users).

importantly though, it does not create per-user entries for PUBLIC queries. all logged-in users share the same PUBLIC cache entry, and all logged-out users share another. the actual sessionId value is only used as the cache key for PRIVATE-scoped queries.

so the worst case for PUBLIC queries is 2 cache entries (null session vs non-null session), not N entries per user.

if you want PUBLIC queries to always share a single entry regardless of auth state,…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simplecommerce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants