Skip to content

Invalidate cache when performing additional post operations#949

Merged
svivian merged 1 commit intoq2a:bugfixfrom
pupi1985:patch-154
Jul 12, 2023
Merged

Invalidate cache when performing additional post operations#949
svivian merged 1 commit intoq2a:bugfixfrom
pupi1985:patch-154

Conversation

@pupi1985
Copy link
Contributor

There are a few situations that were being missed when invalidating question caches:

  • Creating answers
  • Creating comments
  • Updating content of question
  • Updating content of answer
  • Updating content of comment

Having these cache invalidations set would allow users to configure longer cache periods.

@svivian svivian merged commit 99e6bb8 into q2a:bugfix Jul 12, 2023
@svivian
Copy link
Collaborator

svivian commented Jul 12, 2023

Thanks for this. My original thought was to balance cache hits with too many cache invalidations, but I think you're right this allows longer cache periods (and therefore more time saved overall).

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.

2 participants