View Single Post
  #27  
Old 12-29-2010, 09:56 PM
 
erone123 erone123 is offline
 

Newbie
  
Join Date: Mar 2005
Posts: 2
 

Default MaxCDN Content Delivery Solution?

Thanks I tried it out about a month ago and it seems to be working quite well.

On our 4.1.x I did notice one thing:
1 - The Detail Images are not being cached, so I added "OR $type == 'D'" and My server load went way up it was hitting
Last 1 minute 5.68
Last 5 minutes 17.62
Last 15 minutes 24.81

Below is the Code I used, Not sure what to do next?

#// include/func/func.files.php - WCM - CDN Product Images
if (($type == 'T' OR $type == 'D' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/var/www/vhosts/mysite/httpdocs/images/','http://netdna.mysite.com/images/',$image_path);
return str_replace('$http_location','',$image_path);
}
#// / WCM - CDN Product Images

Any suggestions?
__________________
Version 4.1.X

Last edited by erone123 : 12-29-2010 at 09:57 PM. Reason: grammer
Reply With Quote