X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Website too slow (https://forum.x-cart.com/showthread.php?t=66582)

carpeperdiem 05-09-2013 11:05 AM

Re: Website too slow
 
Quote:

Originally Posted by DavyMac
I would very much like to assign resources to a subdomain but in 4.5.4 it is not clear where the image folders are assigned. In older versions I'd just reassign $imagedir to be the subdomain, but I'm at a loss with this version.

Can anyone point me in the right direction please? Has anyone set resources to be on a subdomain in 4.5.*?


This may help:

http://forum.x-cart.com/showthread.php?t=64443

my post #57 has a summary of the file edits. That could be useful for subdomains as well -- HOWEVER -- I'd invest $20 and try a CDN before doing it yourself.

DavyMac 05-10-2013 12:24 AM

Re: Website too slow
 
Quote:

HOWEVER -- I'd invest $20 and try a CDN before doing it yourself.

Thanks for your reply, and by the strength of your advice I sense I really should look into a CDN.

carpeperdiem 05-10-2013 04:05 AM

Re: Website too slow
 
I would look for a 50% off coupon for MaxCDN and just follow my guide in post #57
EWD may have an affiliate link/discount code
Hands-on had one for me.

BEFORE you go with a CDN, benchmark your site.
http://www.webpagetest.org/

Then after about 24 hrs (allow caching to complete) benchmark again. Watch your page load speeds drop by 50% or more. :-)

DavyMac 05-10-2013 06:13 AM

Re: Website too slow
 
Quote:

Originally Posted by carpeperdiem
I would look for a 50% off coupon for MaxCDN and just follow my guide in post #57
EWD may have an affiliate link/discount code
Hands-on had one for me.

BEFORE you go with a CDN, benchmark your site.
http://www.webpagetest.org/

Then after about 24 hrs (allow caching to complete) benchmark again. Watch your page load speeds drop by 50% or more. :-)


Great advice, which I will certainly follow - thanks.

bigredseo 05-10-2013 08:41 AM

Re: Website too slow
 
No more MaxCDN coupons on my end - the only thing I have left these days is just our affiliate code where we'd get $20 if you signed up under our link on our site.

That said, if you use "MaxCDNcoupon" on checkout, you'll save 25% on addition to the already 50% off for your first year.

I've been with MaxCDN for 3 years now - love it!

philrisk 05-12-2013 11:25 PM

Re: Website too slow
 
For setting up MaxCDN you modify these two files smarty.php, func.files.php. I guess you would do the same for a sub domain.

DavyMac 05-12-2013 11:56 PM

Re: Website too slow
 
Quote:

Originally Posted by philrisk
For setting up MaxCDN you modify these two files smarty.php, func.files.php. I guess you would do the same for a sub domain.


Thanks Phil.

When I saw how easy it was to set up and use a CDN I didn't give using a subdomain a second thought. I'm totally sold on CDNs and saw an immediate and huge improvement on website speed. :D/

bigredseo 05-13-2013 09:34 AM

Re: Website too slow
 
Quote:

Originally Posted by DavyMac
Thanks Phil.

When I saw how easy it was to set up and use a CDN I didn't give using a subdomain a second thought. I'm totally sold on CDNs and saw an immediate and huge improvement on website speed. :D/


Combine your CDN with SubDomains and you get the extra speed - that's what I do :) Multiple subdomains point to the single CDN instance results in parallel downloading and faster speed.

carpeperdiem 05-13-2013 09:48 AM

Re: Website too slow
 
Quote:

Originally Posted by handsonwebhosting
Combine your CDN with SubDomains and you get the extra speed - that's what I do :) Multiple subdomains point to the single CDN instance results in parallel downloading and faster speed.


Conor,

You knew that suggesting this would open a can of worms ;-)
Can you share how using subdomains with the cdn can be setup on my hands-on VPS?
Is it simply a matter of creating additional subdomains in cPanel?
Ok, then how do we tell x-cart to use the subdomain instead of the normal location? Care to share?

Does this mean I need an additional account with the cdn?

Not really getting my thick head around it. Must be a monday thing.
thanks,
J

DavyMac 05-14-2013 02:52 AM

Re: Website too slow
 
I had a go. I created a subdomain and redirected to my CDN CNAME but it resulted in "Oops! This link appears to be broken".


All times are GMT -8. The time now is 08:52 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.