You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Responses based on permissions with dynamic variables are being cached.
To better understand what is the issue let's take the following example:
Cache is enabled
Collection "articles" with "show_date" which is a date time field
Public role can read articles from this collection where { filter: { show_date: { _lt: $NOW } } }
When asking items from article with Public role:
If cache is not populated, everything works as expected, i.e., the response will return all the "articles" where "show_date" is before now
If cache is already populated, we will still receive the same cached response. Although, because permission is based on time, we will not see "articles" that matches the rule "before now".
Because the permission is based on time, we believe that this kind of responses may not be cached as the response can be different at any point in time.
The text was updated successfully, but these errors were encountered:
Describe the Improvement
Responses based on permissions with dynamic variables are being cached.
To better understand what is the issue let's take the following example:
{ filter: { show_date: { _lt: $NOW } } }
When asking items from article with Public role:
Because the permission is based on time, we believe that this kind of responses may not be cached as the response can be different at any point in time.
The text was updated successfully, but these errors were encountered: