Skip to main content

Cache 404 images slow loading

More
11 years 5 months ago #1500 by mackelito
For some reason the images takes super long time to load?? I have no idea why!
Any one else having this problem?

www.homeofsweden.se/

I´m also having this site www.styleofsweden.se on the same server and that loads fast.. ??

Please Log in to join the conversation.

More
11 years 5 months ago #1503 by redactie
The first site uses 404 caching, the second doesn't

are the images stored on your server? is the file .../product-img/thumbs/19/950078381-1802075.jpg present?

otherwisee the 404 script has to fetch the file over and over again

Please Log in to join the conversation.

More
11 years 5 months ago #1506 by mackelito
Yes the 404 script is working just fine and stores the images on my server... but for some reason the loading takes really long time for those images?

The images are present on server...

I just think it´s so strange that other images like the logo and the top right image loads fast?

Please Log in to join the conversation.

More
11 years 5 months ago #1508 by redactie
The thing I can thing of is that the image is not fetched from disk but regenerated everytime the image is loaded.
That might be quite slow depending on the speed of the remote server where the image is fetched.

You would need some logging in the index.php to see whether or not it kicks in
a simple print "X"; after the first <?php would do.

if the image is regenerated then the .htaccess is not working correctly

Please Log in to join the conversation.

More
11 years 5 months ago #1510 by mackelito
Hmm.. ok.. but if the image exsist on server it will not generate a new image right?

homeofsweden.se/product-img/medium/19/3309110367-1802077.jpg
homeofsweden.se/product-img/thumbs/19/330220638-1802077.jpg

This is the .htaccess file:

#php_value memory_limit 64M
#ErrorDocument 404 /img/index.php
Rewriteengine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) index.php

Please Log in to join the conversation.

More
11 years 5 months ago #1513 by redactie
We still have to find out whether or not the 404 part works.

Remove/rename the .htaccess and or the index.php

Images loaded earlier should still display.

are there a lot of files? Then it might be a system issue. Clean up

Please Log in to join the conversation.

Time to create page: 0.349 seconds