4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 16, 2018, 06:06:16 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  FAQ, Tips
| | |-+  Pages load very slowly
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Pages load very slowly  (Read 10478 times)
Chris
4images Moderator
4images Guru
*****
Offline Offline

Posts: 4487

Thank You
-Given: 0
-Receive: 31

Did u ever stop to think and then forget to start?


View Profile
« on: June 17, 2003, 04:41:48 PM »

This was really just copied from a post made by Jan and edited slightly for clarity.  Wink
--------------------------------------------------------------------------------------

If you have a lot of images in your database, the random category image and random image are very expensive database queries because of "RAND()" in the ORDER BY clause.

Open includes/constants.php and try changing
1
define('SHOW_RANDOM_CAT_IMAGE', 1);

to
1
define('SHOW_RANDOM_CAT_IMAGE', 0);

This disables the category related random image.


If this does not help, change
1
define('SHOW_RANDOM_IMAGE', 1);

to
1
define('SHOW_RANDOM_IMAGE', 0);

This will disable the random image completely.
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.035 seconds with 19 queries.