- Posts: 174
- Thank you received: 4
Cache 404 images slow loading
11 years 5 months ago #1500
by mackelito
Cache 404 images slow loading was created 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.. ??
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.
11 years 5 months ago #1503
by redactie
Replied by redactie on topic Re: Cache 404 images slow loading
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
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.
11 years 5 months ago #1506
by mackelito
Replied by mackelito on topic Re: Cache 404 images slow loading
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?
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.
11 years 5 months ago #1508
by redactie
Replied by redactie on topic Re: Cache 404 images slow loading
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
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.
11 years 5 months ago #1510
by mackelito
Replied by mackelito on topic Re: Cache 404 images slow loading
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
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.
11 years 5 months ago #1513
by redactie
Replied by redactie on topic Re: Cache 404 images slow loading
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
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