4images Help / Hilfe > FAQ, Tips

Pages load very slowly

(1/1)

Chris:
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

--- Code: ---define('SHOW_RANDOM_CAT_IMAGE', 1);
--- End code ---

to

--- Code: ---define('SHOW_RANDOM_CAT_IMAGE', 0);
--- End code ---

This disables the category related random image.


If this does not help, change

--- Code: ---define('SHOW_RANDOM_IMAGE', 1);
--- End code ---

to

--- Code: ---define('SHOW_RANDOM_IMAGE', 0);
--- End code ---

This will disable the random image completely.

Navigation

[0] Message Index

Go to full version