Template talk:Altmed

From RationalWiki
Jump to navigation Jump to search

Gabe likes it. Lord Goonie Hooray! I'm helping! 22:16, 9 August 2010 (UTC)

Random article lists are semi-static[edit]

This list(s) of random articles on any page transcluding this template (including this page) update each time that page is edited and saved (or null-edited (not-edited but saved)).

The list(s) also update every time that page (including this page) is Previewed during editing. (The last Preview doesn't apply; the list(s) changes again when the page is saved.)

IF the pages are supposed to change each time they are viewed or refreshed, then using "include" instead of [transclude] won't fix it. It would need some deeper change to {randomarticles} to override the normal page caching. (I.e., generate the random articles at service-time, not at save-time.)

Another way might be to re-cache every page with this template at regular intervals, such as 24 hours. (Can skip it for any page that has not been viewed since last re-cache, if any.) (Just letting the cache expire some time after last-use would not work - popular pages would never re-cache. Letting the cache expire some time after creation would work.) -A876 (talk) 22:13, 30 August 2022 (UTC)