Skip to content

Ensure wiki cache expires correctly in PostReceive

Dylan Griffith requested to merge fix-cache-expiration-new-wiki-page into master

What does this MR do?

This fixes an issue where wiki cache is causing Elastic indexing to not happen after creating a new page.

All this MR changes is that we use the same cache invalidation logic for project repo push now in wiki repo push. It seemed to be missing from the wiki repo push handling.

You can reproduce this bug by simply creating a new project, adding a wiki page and then trying to search for it. It doesn't get indexed because it thinks the wiki is empty due to the stale cache.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports