Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

MAX cdn

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #81  
Old 05-01-2013, 07:00 AM
 
philrisk philrisk is offline
 

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

Default Re: MAX cdn

My results:

http://collectables.co.uk/images/webtest.gif
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #82  
Old 05-01-2013, 07:02 AM
 
philrisk philrisk is offline
 

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

Default Re: MAX cdn

Quote:
Originally Posted by philrisk

Looks like I need a better server.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #83  
Old 05-01-2013, 07:04 AM
 
philrisk philrisk is offline
 

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

Default Re: MAX cdn

http://collectables.co.uk/images/ping.gif
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #84  
Old 05-01-2013, 07:07 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: MAX cdn

Quote:
Originally Posted by philrisk
Looks like I need a better server.

have you enabled Memcache support?
In config.php

define('USE_MEMCACHE_DATA_CACHE', true);

you will need to be sure your server is configured for this.
Hands-On took care of this for me.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #85  
Old 05-01-2013, 07:10 AM
 
philrisk philrisk is offline
 

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

Default Re: MAX cdn

Just enabled it to see if there is a difference. I think I have it on my server.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #86  
Old 05-01-2013, 07:13 AM
 
philrisk philrisk is offline
 

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

Default Re: MAX cdn

well that gave a slower result:
First View 4.345s 1.171s 3.047s 3622 4.345s 56 914 KB 6.828s 59 917 KB
Repeat View 3.181s 1.209s 2.635s 3044 3.181s 9 89 KB 6.893s 10 159 KB
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #87  
Old 05-01-2013, 07:22 AM
 
philrisk philrisk is offline
 

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

Default Re: MAX cdn

Have turned it back off. I think I have APC cache on which would overwrite memcache.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #88  
Old 05-12-2013, 06:31 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: MAX cdn

carpeperdiem, I'm just going through your invaluable steps in post #57 and I'm puzzled that in step 1 you assign AltImagesDir and AltSkinDir yet I can't see them being used anywhere.
In step 1 are you simply overwritting their assignment, made elsewhere, and they are used in files that don't need editing?
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #89  
Old 05-12-2013, 06:36 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: MAX cdn

Quote:
Originally Posted by DavyMac
carpeperdiem, I'm just going through your invaluable steps in post #57 and I'm puzzled that in step 1 you assign AltImagesDir and AltSkinDir yet I can't see them being used anywhere.
In step 1 are you simply overwritting their assignment, made elsewhere, and they are used in files that don't need editing?

if https is NOT on, then use the CDN
if https is on, use the default xcart server

I got this code from maxcdn support
it works for me
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #90  
Old 05-12-2013, 07:04 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: MAX cdn

Quote:
Originally Posted by carpeperdiem
if https is NOT on, then use the CDN
if https is on, use the default xcart server

I got this code from maxcdn support
it works for me

I'm asking specifically about these two lines:
PHP Code:
$smarty->assign("AltImagesDir",    "http://cdn.domain.com/skin/books_and_magazines/images"); 
$smarty->assign("AltSkinDir",    "http://cdn.domain.com/skin/books_and_magazines"); 

AltImagesDir and AltSkinDir were not present before the edit (unlike ImagesDir and SkinDir), so if they are new where are they being used? I'm guessing they are in fact used for your chosen skin, but that would mean the assignment exists elsewhere since it did not reside in smarty.php - in which case don't we need to delete the original assignment?

If I were using an XCart template then I would simply trust your post and include the code verbatim, but I'm using thexcartstore's xtreme_gear template and I've yet to workout how to include their template resources on CDN. It's complicated more because I have a different template for mobiles - so I'm not sure what to put for AltImagesDir and AltSkinDir.
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:22 AM.

   

 
X-Cart forums © 2001-2020