4images Modifications / Modifikationen > Mods & Plugins (Requests & Discussions)

Random pictures

<< < (29/31) > >>

Eagle Eye:

--- Quote from: Eagle Eye on November 23, 2009, 08:06:30 AM ---@V@no

Is it possible to mod this code: http://www.4homepages.de/forum/index.php?topic=4259.msg17513#msg17513 so that it will only randomize the images once in xx hours?


--- End quote ---

Addition: The reason i think this feature would be useful is because on large websites having lots of images and traffic, randomizing the images each time the page loads will have a huge performance degradation on database server and most shared hosting account will not be allowed to use so much server resources.

V@no:

--- Quote from: Eagle Eye on November 23, 2009, 08:06:30 AM ---@V@no

Is it possible to mod this code: http://www.4homepages.de/forum/index.php?topic=4259.msg17513#msg17513 so that it will only randomize the images once in xx hours?


--- End quote ---
I've added version B, with cache, in that post

Eagle Eye:

--- Quote from: V@no on November 24, 2009, 03:07:41 PM ---
--- Quote from: Eagle Eye on November 23, 2009, 08:06:30 AM ---@V@no

Is it possible to mod this code: http://www.4homepages.de/forum/index.php?topic=4259.msg17513#msg17513 so that it will only randomize the images once in xx hours?


--- End quote ---
I've added version B, with cache, in that post

--- End quote ---

Thanks V@no. This is a great addition to this MOD.

I was looking for a different approach, is it possible to cache just the MySQL query results and not generate an individual home page for every new user.... instead just cache the query and write this results in a cache page and serve the same query results to the template engine/php for every user in that time frame.... so what i mean is there will be only one cache file for all users in that time frame....

thank you very much for looking into this.

V@no:
Your method might conflict with user permissions. What if visitor not supposed to see the cached image?

GaYan:
Hey Guys  8O

Can we select the Random Images from a Selected Category and show it on index page ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version