Make document zone caching smarter

RESOLVED FIXED

Status

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: jezdez, Unassigned)

Tracking

Details

(Whiteboard: [specification][type:change])

(Reporter)

Description

4 years ago
What feature should be changed? Please provide the URL of the feature if possible.
==================================================================================
The wiki app stores the zone URL mapping with the default cache TTL of 60 seconds (!) in the current prod setup, so it would probably makes sense to increase that to a sensible time like a day and invalidate the cache when document is saved and url_root field is not empty

What problems would this solve?
===============================
Fewer cache invalidation, fewer db queries

Who would use this?
===================
n/a

What would users see?
=====================
n/a

What would users do? What would happen as a result?
===================================================
n/a

Is there anything else we should know?
======================================
(Reporter)

Updated

4 years ago
Blocks: 1104093
Component: General → Performance
(Reporter)

Updated

4 years ago
Depends on: 1104103

Comment 1

4 years ago
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/26efc73fa3b2a9ae086640d55b99f2e74155596b
Fix bug 1104119 - Cache refill instead of invalidation for document zone remaps.

This resets the cached document zone remaps when saving documents instead just deleting them when saving the zone.

https://github.com/mozilla/kuma/commit/fe633f89fed7f3b48e6b86c556234fb544593d40
Merge pull request #3067 from mozilla/bug1104119

Fix bug 1104119 - Cache refill instead of invalidation for document zone remaps.

Updated

4 years ago
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.