![]() |
Re: MaxCDN Content Delivery Solution?
Can anyone help us in setting the MaxCDN ? for caching the site images, product images, js and css files?
|
Re: MaxCDN Content Delivery Solution?
HI, my site has over 150 thousands items and i have filters which was created by xcart, however the filter somehow is very slow and sometime crash with database of sql Error code : 1064. my question is will MaxCDN help my situation, thanks
albert |
Re: MaxCDN Content Delivery Solution?
albertchui - MaxCDN can't help you with sql Error. Code 1064 means there is syntax error somewhere. Post your question here http://forum.x-cart.com/forumdisplay.php?f=13 , so SQL gurus can help you.
|
Re: MaxCDN Content Delivery Solution?
I started to use MaxCDN, but I noticed that detail images would no longer pop up while MaxCDN was activated (via smarty code), nothing would happen at all when you click the view detail images. So I put the original smarty.php code back and immediately can view detailed images.
Anyone know why MaxCDN would effect the detailed images popup function? Thanks xcart 4.4.2 My code: // WCM - MaxCDN Implementation if ($_SERVER['HTTPS'] != 'on') { $smarty->assign("SkinDir","http://mydomaincdn-url/skin1"); $smarty->assign("ImagesDir","http://mydomaincdn-url/skin1/images"); } else { $smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images'); $smarty->assign('SkinDir', $xcart_web_dir . $smarty_skin_dir); } |
Re: MaxCDN Content Delivery Solution?
There are two threads about this going right now.. Ugh.
The code, I think, that has to be edited is the code for the AltSkin in smarty.php -- i just can't figure it out. |
Re: MaxCDN Content Delivery Solution?
I can't get MaxCDN to work. When I enable it, I get an all text website, no images. If I go into https://www.domain.com, it is all back to normal, so that tells me the code is bypassing https pages, which is good.
I tried this with and with out public_html in the path. Same results. And of course, I changed "mydomain". Quote:
Quote:
Quote:
In my MaxCDN CP Quote:
Can anybody help? |
Re: MaxCDN Content Delivery Solution?
Okay, I got it mostly working. I ended up having to use url xxxxxxxxxxxxpullzone.mydomain.netdna-cdn.com instead of the maxcdn.mydomain.com in smarty.php.
I still cannot get the images to show up. T, P or D. Some will show from a cat directory and C, but not the others. |
Re: MaxCDN Content Delivery Solution?
This just in... ](*,)
The reason I had to use the temp. URL was DNS has to do it's thing before the other URL will work. Here is what I ended up with that finally brought my images up. Code:
// WCM - CDN Images Putting /images at the end made it work. All fixed and running now. |
Re: MaxCDN Content Delivery Solution?
Jon,
Does this same maxcdn code work in 4.4? |
Re: MaxCDN Content Delivery Solution?
It's a bit different on 4.4 but the principle is the same, just the exact code is a bit different. Probably this would work:
FIND: Code:
$smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images'); REPLACE WITH: Code:
// WCM - MaxCDN Implementation |
All times are GMT -8. The time now is 06:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.