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

DGI9-521: Improved cacheability. #36

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

adam-vessey
Copy link
Contributor

@adam-vessey adam-vessey commented Mar 26, 2024

Having all search result things in the base ip context means that things wouldn't be cacheable between IPs; however, we care more about the ranges in which an IP falls for embargo. By rolling a context to wrap around this concept, anonymous results can be cached/used by other clients from the same ranges (including being outside of any specified range).

Unfortunately, the arbitrary "exempt user" thing means that the user context will always be applied, affecting the cacheability between different authenticated users; however, if we indeed did something to allow for larger groups of users in aggregate to be granted access? role could handle things at the top-level, but might need other capabilities.


On further thought, not sure that this would have a huge impact, given this primarily deals with tagging Search API results at the moment; however, most Search API things are not very cacheable.

When/if applying to the other tagged queries, it could make sense; however, there's not presently a mechanism to nicely tag such queries though we could borrow an approach used in core.

@adam-vessey adam-vessey added the minor Added functionality that is backwards compatible. label Mar 26, 2024
@nchiasson-dgi nchiasson-dgi merged commit 1e5dddc into main May 9, 2024
4 checks passed
@nchiasson-dgi nchiasson-dgi deleted the feature/better-caching branch May 9, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Added functionality that is backwards compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants