Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Avoid unnecessary cache purges #34

Merged
merged 1 commit into from
Oct 11, 2022
Merged

Conversation

ababic
Copy link
Contributor

@ababic ababic commented Sep 26, 2022

These changes update the signal handlers so that cache purges for document URLs are only triggered when the "collection" or "file" fields could have been updated (and skip them if not).

For example, if I had a background task that transcribed documents and saved the result with something like...

document.transcription = transcription_text
document.save(update_fields=['transcription'])

...the purge would be skipped.

@ababic ababic force-pushed the feature/avoid-unnecessary-purges branch 2 times, most recently from d794ae1 to 45e88ac Compare September 26, 2022 10:53
@ababic ababic requested a review from tm-kn September 26, 2022 10:58
@ababic ababic force-pushed the feature/avoid-unnecessary-purges branch 3 times, most recently from af27cdb to 0c44b3d Compare September 26, 2022 12:53
@ababic ababic force-pushed the feature/avoid-unnecessary-purges branch from 0c44b3d to bf08de5 Compare September 26, 2022 12:55
@tm-kn tm-kn merged commit cf97363 into main Oct 11, 2022
@tm-kn tm-kn deleted the feature/avoid-unnecessary-purges branch October 11, 2022 15:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants