Closed
Bug 880614
Opened 12 years ago
Closed 5 years ago
Add option to macros that triggers periodic page rebuild
Categories
(developer.mozilla.org Graveyard :: KumaScript, enhancement)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: sheppy, Unassigned)
References
Details
(Whiteboard: [specification][type:feature])
What problems would this solve?
===============================
Some macros (templates) are particularly sensitive to changes that are made, and can result in inaccurate output if not rebuilt periodically. Let's make it possible to mark a template (in the template editor interface) with how many hours/days its output should be allowed to be cached.
There should also be a "dump all caches now" button available to template authors, so they can force the caches to be cleared if they've made a change that should require all cached values to go away.
Who would use this?
===================
Template authors.
What would users see?
=====================
More up-to-date results from templates.
What would users do? What would happen as a result?
===================================================
Template authors would have a drop-down menu in the editor interface allowing them to choose a TTL for the template's output. Options would include:
* Indefinite (don't dump the cached results except on force-refresh)
* 1 hour
* 4 hours
* 8 hours
* 1 day
* 1 week
Is there anything else we should know?
======================================
This will be increasingly useful as we build out landing pages that build their contents based on their subpages or on tags, since they only refresh currently if someone knows to force them to.
Reporter | ||
Comment 1•12 years ago
|
||
This also impacts zones, as many zones are likely to involve macros that build lists of pages related to the topic based either on subpages or tags. Keeping zone landing pages and menus up-to-date means being able to flush cached lists on a regular basis.
Blocks: 861991
Priority: -- → P1
Comment 2•12 years ago
|
||
Something to keep in mind -- we are gradually paying more attention to votes and less attention to the priority field, mostly because the former is usually more accurate and up-to-date. So thanks for voting!
Component: General → KumaScript
Reporter | ||
Comment 3•12 years ago
|
||
There's an additional trick here -- templates that reference other templates.
If template A calls template B, and template B gets dumped, template A should be dumped too.
Comment 4•11 years ago
|
||
Tweaked the title, just to be semantically picky. There's no cache, and we don't store execution result at a macro-by-macro level. We'd need to rebuild whole pages.
So, if a macro was flagged as needing rebuild every hour, we'd need to track all the pages that use it and queue up a rebuild of each of those pages one-by-one. Similar to bug 772704, but triggered by a schedule rather than an edit to macro code.
What we might be able to implement sooner is bug 773522. That is, we could flag whole *pages* (and not macros) as needing periodic rebuild. Simpler system, no macro tracking or dependency tracing involved, but needs a bit more manual effort to set the time-to-live for each page.
Depends on: 767176
Summary: Allow templates to be marked to have their caches dumped → Add option to macros that triggers periodic page rebuild
Updated•11 years ago
|
Severity: normal → enhancement
Priority: P1 → --
Comment 5•5 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•