Thread: MAX cdn
View Single Post
  #3  
Old 09-19-2012, 07:10 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: MAX cdn

Code:
Open smarty.php: ************************************************************************************** $smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images'); $smarty->assign('SkinDir', $xcart_web_dir . $smarty_skin_dir); ************************************************************************************** Replace with this: ************************************************************************************** / WCM - MaxCDN Implementation if ($_SERVER['HTTPS'] != 'on') { $smarty->assign('ImagesDir', "http://CdnUrl.example.com" . $smarty_skin_dir . '/images'); $smarty->assign('SkinDir', "http://CdnUrl.example.com" . $smarty_skin_dir); } else { $smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images'); $smarty->assign('SkinDir', $xcart_web_dir . $smarty_skin_dir); } **************************************************************************************

This only calls the common_files images though. Looking for better integration.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote