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

Cache Rework Part 1 #413

Merged
merged 14 commits into from
Jan 24, 2025
Merged

Cache Rework Part 1 #413

merged 14 commits into from
Jan 24, 2025

Conversation

Crypta-Eve
Copy link
Member

@Crypta-Eve Crypta-Eve commented Sep 8, 2024

This PR adds back some cache functionality as it used to exist within SeAT v4.

The intent is that for most jobs (exclusions based on ETAG reliability and complexity of responses/handling), if the result is cached then do not try and insert it into the DB. In a lot of cases, this should lead to fewer DB writes.

There is a new ENV var that will be added as part of this change, which is EVEAPI_RESPECT_CACHE
It defaults to false, which will not check if an ESI response is cached and always treat it as new data (as has been the case in SeAT v5 until now)enables this behavior. This can be set to true in order to trial the v4 style caching. In a future release this default may get changed to true.

Future work on the cache will follow will aim at reducing the size of the cache itself.

@Crypta-Eve Crypta-Eve marked this pull request as draft September 9, 2024 14:59
@Crypta-Eve Crypta-Eve marked this pull request as ready for review November 26, 2024 12:02
@Crypta-Eve Crypta-Eve merged commit dad4e68 into eveseat:5.0.x Jan 24, 2025
1 check passed
@Crypta-Eve Crypta-Eve deleted the cache_rework branch January 24, 2025 13:38
@Crypta-Eve Crypta-Eve restored the cache_rework branch January 24, 2025 13:47
Crypta-Eve added a commit that referenced this pull request Jan 24, 2025
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

Successfully merging this pull request may close these issues.

1 participant