Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
Create a daily page of random articles like Wikipedia
Avatar
gymnophoria #1
Member since Jan 2010 · 34 posts · Location: London, UK
Group memberships: Members
Show profile · Link to this post
Subject: Create a daily page of random articles like Wikipedia
I want my wiki to have a few articles linked on the front page so users see something new when they visit, similar to Wikipedia.

I've tried using the RANDOMINC plugin to show the title section of five random articles but it's SLOW to load, since every page load is doing 5 random searches. It would be better more efficient to have the random page generated only once per day, stored in cache (I guess) so there's no additional workload every time it loads.

Any thoughts how I could do this? I don't know much php.
Avatar
MartinR #2
Member since Jul 2015 · 151 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
For information: the articles appearing on Wikipedia's front page are not selected at random.  Digging in a bit, the front page is a mass of special HTML coding that calls in Wiki templates for the actual content.  Therefore an editor only needs to change a simple template and the front page is updated.  Although the whole thing is fully protected (ie locked), you can view the source by using ''view source'' where the ''edit'' tab would normally be.
This post was edited on 2018-05-10, 19:32 by MartinR.
Avatar
gymnophoria #3
Member since Jan 2010 · 34 posts · Location: London, UK
Group memberships: Members
Show profile · Link to this post
Well thanks for that information - but what's the answer to my actual question?! ;) :-D
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-19, 22:48:48 (UTC +02:00)