Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Tips, Tricks & Tutorials (http://www.datafeedr.com/forums/forumdisplay.php?f=66)
-   -   Speed up your store! (http://www.datafeedr.com/forums/showthread.php?t=5770)

Eric November 27th, 2011 11:18 AM

Speed up your store!
 
In version 3.4, we focused on optimizing the performance of your store. With that brought 2 options that can greatly increase the speed at which your store pages load. You can now cache your CSS file so the browser can store and serve it from its memory and you can also have all of your store pages cached. Cached pages get cleared after each update so you don't have to worry about cached pages being displayed if you've made changes to your store in the Factory. On top of the caching, we've also optimized database queries so that they perform much better.

Below I've outlined how to do 2 things that will improve performance of your store:

1. Store product images and CSS file locally
2. Cache all store pages

There are, however, 2 caveats:

1. If a merchant doesn't allow the downloading of their images, they can't be stored on your server (ie. locally).
2. If you have any views which display products randomly, those views will not be cached as you can not return random products from a cached view.

Store product images and CSS file locally

1. Go here: WordPress Admin Area > Tools > Datafeedr > Directories
2. Click the [Set Up] button to create the required directories on your server (if all directories are not already set up)
3. Go here: The Factory > Your Store > Your store > Store menu > URL Settings
4. Change the Product image field to %li
5. Change the Product thumbnail field to %lt
6. Change the CSS file field to %lc
7. Click the [Save] button
8. Go here: WordPress Admin Area > Tools > Datafeedr
9. Click the [Update Products and Settings] button

Here's a screenshot:




Cache all store pages

1. Go here: The Factory > Your Store > Your store > Store menu > Advanced Store Settings
2. Check the Allow view caching box.
3. Click the [Save] button
4. Go here: WordPress Admin Area > Tools > Datafeedr
5. Click the [Update Products and Settings] button

Here's a screenshot:



If you need more information or explanation, we've also covered how to store product images locally in this video: http://www.datafeedr.com/videos?vide...rc=yt#videotop

Eric

ayorofrance December 7th, 2011 09:16 AM

Hi Eric,

Great additions!

Are the store page caches stored on the file system on the server?

If so what is the location? (Just want to make sure I don't inadvertently include the location in backups).

Thanks!

Eric December 7th, 2011 10:11 AM

Hi
Quote:

Originally Posted by ayorofrance (Post 26779)
Are the store page caches stored on the file system on the server?

If so what is the location? (Just want to make sure I don't inadvertently include the location in backups).

Yes, they are stored in the file system. They are stored in the Temporary directory configured here: WordPress Admin Area > Tools > Datafeedr > Directories.

Eric

webnamescouk December 8th, 2011 09:00 AM

I've just tested this on a store, but the css seems to not be caching?

edit: I see this is a new feature of the updated Datafeedr plugin, i should've updated it before trying it :)

ayorofrance February 27th, 2012 06:13 AM

Quote:

There are, however, 2 caveats:

1. If a merchant doesn't allow the downloading of their images, they can't be stored on your server (ie. locally).
2. If you have any views which display products randomly, those views will not be cached as you can not return random products from a cached view.
I believe Number 2 is also true if you sort your categories by click thru... e.g. most popular...

In addition to these tips I'd recommend W3Total Cache and using the Content Distribution Network feature of this plugin.

It means that you can have all your product images pushed to a CDN like Amazon Cloudfront with very little work...

Another great option with W3Total Cache is the Cloudflare integration... you can get a free account with Cloudflare...

Just my two cents...

SkemPab March 3rd, 2012 02:08 AM

Like webnamescouk I also tried and didnt read that it was for the updated version. I will test further tomorrow when I have more time, thanks look forward to this :)

lesljr March 8th, 2012 04:33 PM

how do we use the W3Total Cache Content Distribution Network feature

Eric March 8th, 2012 04:36 PM

Quote:

Originally Posted by lesljr (Post 29665)
how do we use the W3Total Cache Content Distribution Network feature

I don't know as I've not used it. That's a better question for the W3TC guys.

Eric

ayorofrance March 11th, 2012 12:53 PM

Hi lesljr,

I've done the following:

- Created an account with aws.amazon.com (Amazon Web Services) to use their cloudfront service. You can choose any of the other w3tc supported ones if you prefer.
- On the w3tc General Settings page enable CDN and choose Amazon Origin Pull (have not used Push - with pull everything is automatically pull to the CDN as needed).
- On the w3tc settings page I have created 10 CNAMES (cdn0.xxx.com to cdn9.xxx.com) to use my own hostname and spread across multiple hosts for parallel download... 10 might be a bit much... you could probably get away with 5...
-- You need to:
--- create the cnames in your DNS editor on your hosting account
--- add the cnames to the Cloudfront distribution
--- enter the cnames in w3tc

And that's pretty much it...

For a bit more detail on creating cnames and etc. see these resources:
- http://support.maxcdn.com/pull-zone/...ion/wordpress/ (from MaxCDN)
- http://www.wpbeginner.com/plugins/ho...for-beginners/ (uses MaxCDN)
- http://www.freedomtarget.com/w3-tota...and-cloudfront

Sorry this is a bit brief... If you have any questions please ask and I will try to answer them...

lesljr March 12th, 2012 01:35 PM

thanks for the info. I'll take a look

lesljr March 13th, 2012 03:32 PM

how much does it cost?

daniel_28 July 5th, 2012 09:46 AM

Store ID: 38503
Website URL: www.fitliving.nl
URL to page in question: www.fitliving.nl/shop


I have done the customizations as instructed above. But I have not seen any speed improvement yet... :( :confused:

I am still in my 30 days trial, but the speed of the store is a deal breaker for me.

The support is very good and the back-end works perfectly, but my visitors will not be waiting a few seconds for every page to load..

Eric July 5th, 2012 10:03 AM

Quote:

Originally Posted by daniel_28 (Post 33281)
I have done the customizations as instructed above. But I have not seen any speed improvement yet... :( :confused:

The thing that is taking a long time to load are the images from the merchant's site. The merchant has access controls on their images which prevent the images from being downloaded to your server ultimately allowing the images to be served quickly off of your server.

Here's the solution for this problem: http://www.datafeedr.com/forums/show...1487#post31487

Eric

daniel_28 July 6th, 2012 03:56 AM

Quote:

Originally Posted by Eric (Post 33283)
The thing that is taking a long time to load are the images from the merchant's site. The merchant has access controls on their images which prevent the images from being downloaded to your server ultimately allowing the images to be served quickly off of your server.

Here's the solution for this problem: http://www.datafeedr.com/forums/show...1487#post31487

Eric

Ok, so the fact that this has not improved my store speed, has nothing to do with the fact that I changed my URL settings before..? Because I renamed "STORE" -> "SHOP" as shop is more common in my language..

But now, after 'Set Up All Directories' in The Directories area within the Datafeedr/Wordpress admin, I see the word 'STORE' in URL and PATH.. Shouldn't this be SHOP because the location is of my store is www.fitliving.nl/shop...???

Eric July 6th, 2012 08:45 AM

Quote:

Originally Posted by daniel_28 (Post 33307)
Ok, so the fact that this has not improved my store speed, has nothing to do with the fact that I changed my URL settings before..? Because I renamed "STORE" -> "SHOP" as shop is more common in my language..

No, but you do not make the change properly. On your Default Category Page view you still have this [product.image tag='1']. It should be this [product.image tag='1' direct='1'].

daniel_28 July 6th, 2012 09:50 AM

Quote:

Originally Posted by Eric (Post 33313)
No, but you do not make the change properly. On your Default Category Page view you still have this [product.image tag='1']. It should be this [product.image tag='1' direct='1'].

I just did. Much much better speed. Thanks Eric.

Almost their. What are the trics & tips to get it turbo speed?:)

Eric July 6th, 2012 10:10 AM

Quote:

Originally Posted by daniel_28 (Post 33319)
I just did. Much much better speed. Thanks Eric.

Almost their. What are the trics & tips to get it turbo speed?:)

That's about it. The rest you can handle with WP caching plugins and not adding too many plugins to your site.

Eric

daniel_28 July 7th, 2012 03:37 AM

Quote:

Originally Posted by Eric (Post 33320)
That's about it. The rest you can handle with WP caching plugins and not adding too many plugins to your site.

Eric

Ok thanks.

Which WP caching plugins would you recommend?

And do you mean not adding too many plugins only for the store page, or the whole site?

Eric July 7th, 2012 09:16 AM

Quote:

Originally Posted by daniel_28 (Post 33326)
Which WP caching plugins would you recommend?

And do you mean not adding too many plugins only for the store page, or the whole site?

I think WP Super Cache is the most popular.

I mean not to add too many plugins to your whole site. The more you add, the more work your server has to do to load all the plugin information on every page.

Eric

ayorofrance July 10th, 2012 04:32 AM

Quote:

Originally Posted by daniel_28 (Post 33319)
I just did. Much much better speed. Thanks Eric.

Almost their. What are the trics & tips to get it turbo speed?:)

Hi Daniel,

I have sub-second response times (testing with http://tools.pingdom.com/fpt/) on a shared bluehost hosting account for my sites...

I use W3Total Cache, Cloudfront and Amazon Pull CDN. This is for merchants that do allow image caching...

I might write up the process for Performance Optimization some day, but for now look at my post above for more info...

daniel_28 July 12th, 2012 05:27 AM

Quote:

Originally Posted by ayorofrance (Post 33401)
Hi Daniel,

I have sub-second response times (testing with http://tools.pingdom.com/fpt/) on a shared bluehost hosting account for my sites...

I use W3Total Cache, Cloudfront and Amazon Pull CDN. This is for merchants that do allow image caching...

I might write up the process for Performance Optimization some day, but for now look at my post above for more info...


Hi,

thank you so much for your great tips. I seem to have a load time of 4.47s on a shop category page That must go faster, otherwise I am afraid the shop is going to fail.

WHich of you 450 post should I specificly look at?

I am on a shared hosting plan here in The Netherlands. Shouldn't I be using Cloud services that are hosted in mainland europe for quicker hosting?

Are you willing to help me out on the whole process? :)

Many many thanks

Daniel

ayorofrance July 12th, 2012 07:07 AM

Hi Daniel,

Sorry for not being clear: it's this post (further up this thread).

Hosting in main land europe as opposed to? US? UK?

All my sites are actually hosted in US even if most of them are european. Having said that you should get slightly fast load times if your hosting is in Europe (and your site is for Europe too).

Some people speculate that Google also likes if your site is hosted in the same country as your site targets.... I have no idea if that is true, but it sounds plausible...

My home page (DF store page with 9 products):


Category page (12 products):


Category page (48 products):


Note that - especially on shared hosting - you need to run the tests a few times...

The speeds shown above are the optimal times... i.e. this is what you could get if you have steady traffic to your site.

There are many factors that influence these results:
Shared hosting: the load on your server.
Traffic: If you don't have a lot of traffic your site will 'fall asleep' and the first request takes longer because stuff that might have been swapped out has to be reloaded etc.
Amazon CDN response times.
Network connection quality and load between the visitor and your hosting site.

... just to mention some...

So your end user will only see .7 sec load time if everything is running smoothly... but you know that you've done everything you can to squeeze the most out of your resources...

If you go for a more upmarket host you will see better and more constant response times...

What you need to do:
- Make sure your site is speed optimized with Datafeedr, e.g. store images, css etc locally if you can
- Make use of W3 Total Cache (or another caching plugin if you prefer)
- Make use of a CDN
- Make use of Cloudflare

That's your key to success...

daniel_28 July 17th, 2012 09:56 AM

Hi,

I have found an excellent tuyorial to use CDN cloudfront with W3 total cache: http://www.doitwithwp.com/set-up-w3-...loudfront-cdn/

@ ayorofranche. Did you enable FEED cache?

Also page cache and Minify is giving me trouble according to W3 Total Cache: "The setting change(s) made either invalidate the cached data or modify the behavior of the site. Empty the now to provide a consistent user experience."

Did you also experience this?

thanks
regards,
Daniel

daniel_28 July 17th, 2012 12:05 PM

Quote:

Originally Posted by daniel_28 (Post 33615)
Hi,

I have found an excellent tuyorial to use CDN cloudfront with W3 total cache: http://www.doitwithwp.com/set-up-w3-...loudfront-cdn/

@ ayorofranche. Did you enable FEED cache?

Also page cache and Minify is giving me trouble according to W3 Total Cache: "The setting change(s) made either invalidate the cached data or modify the behavior of the site. Empty the now to provide a consistent user experience."

Did you also experience this?

thanks
regards,
Daniel

for some reason al the upgrades and work with CDN has slowed down my site. It even has increased my page size. How can you check if Amazon cloudfront it working the way it is supposed to work?

ayorofrance July 17th, 2012 06:25 PM

Quote:

Originally Posted by daniel_28 (Post 33615)
@ ayorofranche. Did you enable FEED cache?

Don't think so... but I'm sure you can do that...

Quote:

Originally Posted by daniel_28 (Post 33615)
Also page cache and Minify is giving me trouble according to W3 Total Cache: "The setting change(s) made either invalidate the cached data or modify the behavior of the site. Empty the now to provide a consistent user experience."

Did you also experience this?

This just means you've made changes to the settings, which require you to empty the cache...

thk1976 December 12th, 2012 04:06 PM

Worked great for me much better load speed on www.billigjumpsuit.dk

Aichels March 9th, 2013 05:48 AM

Hi,

I did everything step by step like in tutorial and it really improved my websites speed, but after these changes from six pages of products I got left with only six products. Where did all products disappear?

http://www.fashion-drop.com/store

Aichels March 9th, 2013 06:41 AM

Solved. For some reason after changes it deselected my merchants and it didn't showed saved searches, so what I had was only manually chosen products.

suuziq76 October 8th, 2013 02:04 AM

No productimages visible anymore.... please help
 
Store ID:
Website URL: allairmax.nl
URL to page in question:

Hi there,

Just wanted to speed up my store, followed the instructions above, and now the productimages are visible, but loading very slow; a lot slower then before. Can you take a look?

====

update; it looks no images loading anymore :-(

Thank you!

Greets Susan

denimology October 8th, 2013 04:42 PM

How can a CDN domain be used for images?
 
We'd like to store the product image and thumbnails locally, but have them served via an 'origin pull' Content Distribution Service. For example, if I set the image URL to %li for 'local image', it uses:
http://example.com/wp-content/upload...1668690958.jpg , as expected. However, what I really want is:
http://cdn.example.com/wp-content/up...1668690958.jpg

I tried http://cdn.example.com/%li, but that just gives:

http://example.com/http:/cdn.example...1668690958.jpg

I know I can have the URLs rewritten easily enough - for example by using Apache mod_substitute, but as that does a response-global search & replace it needs to buffer the entire response before returning it rather than being able to stream is as normal.
Plugins like WC Total cache can also rewrite URLs appropriately for a CDN, but I don't know how they interact with the Datafeedr plugin or if they will also cause output buffering to be enabled.

Is there a way to achieve it by editing the DF templates locally?

If not, then this is a feature request: please add some codes such as %lip - local image path and %ltp - local thumbnail path.

Thanks!
-David.

Eric October 9th, 2013 07:24 AM

Hi David,

There was a bug in the plugin that prevented "http://" urls from working.

It should work now. You'll just need to upgrade your version of the Datafeedr plugin to the latest version here: WordPress Admin Area > Tools > Datafeedr > Plugin Upgrade.

Eric

denimology October 10th, 2013 09:35 AM

Brilliant - thanks for the quick turn-around Eric. I've not tested it yet, but I'll let you know if I have any further problem. Cheers.

Quote:

Originally Posted by Eric (Post 44885)
Hi David,

There was a bug in the plugin that prevented "http://" urls from working.

It should work now. You'll just need to upgrade your version of the Datafeedr plugin to the latest version here: WordPress Admin Area > Tools > Datafeedr > Plugin Upgrade.

Eric



All times are GMT -5. The time now is 10:32 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.