Improve cache invalidation on front page when a new demo is submitted

VERIFIED FIXED in 0.9.4

Status

Mozilla Developer Network
Demo Studio / Dev Derby
VERIFIED FIXED
7 years ago
5 years ago

People

(Reporter: lorchard, Unassigned)

Tracking

unspecified
0.9.4

Details

(Whiteboard: 0.9.4.1)

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Currently, the caching on the front page does not pick up new demos. It only gets invalidated when an existing demo that appears on the front page is changed (eg. liked, launched, commented, edited).

Maybe the new demo submission form should force-invalidate the front page query cache, possibly even all demo list caches.
(Reporter)

Updated

7 years ago
Target Milestone: --- → 0.9.4

Comment 1

7 years ago
We need this...
Assignee: nobody → lcrouch
Created attachment 522770 [details]
proposed fix for caching
Attachment #522770 - Flags: review?(lorchard)
(Reporter)

Comment 3

7 years ago
Comment on attachment 522770 [details]
proposed fix for caching

This looks like it should work nicely to me.
Attachment #522770 - Flags: review?(lorchard) → review+
New demos should show up in demos front page and all demos listings. Should still see optimal cache performance between new demos. (Hard to test/verify without scale or a debugger)
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Whiteboard: qa-wanted
qa-verified-staging https://developer-stage9.mozilla.org/en-US/demos/  I uploaded the Haha test Demo and it showed up on the homepage
Whiteboard: qa-wanted
Assignee: lcrouch → nobody
not working  on production after push today,  filed https://bugzilla.mozilla.org/show_bug.cgi?id=653576 for the issue
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
do you mean not working? or can't test?
Depends on: 653576
Whiteboard: 0.9.4.1
Can't test due to bug 653576
I'm marking this back to resolved:fixed since we can test it on staging now and change it to verified after 0.9.4.1 goes to production.
Status: REOPENED → RESOLVED
Last Resolved: 7 years ago7 years ago
Resolution: --- → FIXED

Comment 10

7 years ago
v.fixed on prod.  i was able to submit a test demo and it appeared immediately.

however, we might have a new bug where deleted demos don't go away right away.  i will see if it is a temporary cache issue and if not, file a new bug.
Status: RESOLVED → VERIFIED

Comment 11

7 years ago
my demo finally went away.  it was probably  just a cache thing. 

we should try to figure out a way to clean that up more quickly (if that's possible).  will file an enhancement bug for that.
(Assignee)

Updated

5 years ago
Version: MDN → unspecified
(Assignee)

Updated

5 years ago
Component: Demos → Demo Studio / Dev Derby
Product: Mozilla Developer Network → Mozilla Developer Network
You need to log in before you can comment on or make changes to this bug.