Closed Bug 730714 Opened 13 years ago Closed 13 years ago

kumascript: Use caching in Kuma for requests to kumascript for macro evaluation

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lorchard, Assigned: lorchard)

References

Details

(Whiteboard: u=user c=wiki p=2)

This probably deserves its own bug. To evaluate macros in documents, Kuma needs to make an HTTP request to the kumascript service. The response from this request can be cached, but we need to be smart about it. * Cache entries need invalidation when the source wiki page is edited * Cache entries probably need invalidation if any templates used are edited * How long can cache entries live, assuming none of the above changes? (ie. 5 min? 60 min?)
Blocks: 659364
Depends on: 730704
Target Milestone: --- → 2.5
Whiteboard: u=user c=wiki p=
Assignee: nobody → lorchard
Whiteboard: u=user c=wiki p= → u=user c=wiki p=2
Commits pushed to mdn at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/38e803621638190d75d637d8e672bf363fc18635 bug 730714: Use caching and 304's with kumascript * Constance-configurable default max-age for kumascript requests * Use ETag and Last-Modified for conditional GET and locally cached content on 304 responses. * Kumascript cache invalidation on document edits * Allow end-users to trigger cache invalidation with reload and shift-reload. * Set an X-Kumascript-Caching header that reports on the results of kumascript caching. Can be inspected in the Web Console net log. * kumascript update, which supports all the above. https://github.com/mozilla/kuma/commit/5509582c3cad6d9cf90f83713289bdcaa32c0b74 Merge pull request #134 from lmorchard/bug-730714-cache-kumascript-responses Bug 730714 cache kumascript responses
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Commits pushed to mdn_prod at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/38e803621638190d75d637d8e672bf363fc18635 bug 730714: Use caching and 304's with kumascript https://github.com/mozilla/kuma/commit/5509582c3cad6d9cf90f83713289bdcaa32c0b74 Merge pull request #134 from lmorchard/bug-730714-cache-kumascript-responses
Version: MDN → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.