Varnish Cache For Cs-Cart

Has anyone tried Varnish Cache with CS-Cart?

i am currently tweaking it as we speak :)

How to install ?

[quote name=‘luster’ timestamp=‘1310940963’ post=‘117515’]

i am currently tweaking it as we speak :)

[/quote]



Please post your results once you have everything tweaked to your likings.

[quote name='whiplash13' timestamp='1310992447' post='117563']

Please post your results once you have everything tweaked to your likings.

[/quote]





anyword on this working out for anyone?

Hi,

We are using CS-Cart Multi-vendor Edition Version 4.x. Any idea on how I can implement Varnish Cache for this? I would also like to know how I can cache authenticated pages also.



Thanks,

Vin!

Hi all,



We have some experience with the integration Varnish cache with CS-Cart. If you are interested, please contact us at http://ecom-labs.com. See you!

Does that mean that you have an addon for sale?

[quote name='P-Pharma' timestamp='1397066965' post='181399']

Does that mean that you have an addon for sale?

[/quote]



No, the module is our to-do list, but at the moment we cannot provide you even with the approximate release date. We used varnish cache for several projects with the following logic: the system returns cached pages until the customer is logged in or any product is added to cart. Thanks.

Yes, Varnish and LiteSpeed cache are great. Saves a great amount of server resources and adds security as well.

I will await your release. Thank you for your effort and keeping us up to date.

[quote name='P-Pharma' timestamp='1397172391' post='181524']

Yes, Varnish and LiteSpeed cache are great. Saves a great amount of server resources and adds security as well.

I will await your release. Thank you for your effort and keeping us up to date.

[/quote]



Thanks. If we have any news, I will contact you.

+1 for Varnish Configuration Addon!

Guys we are working on “Full page cache” add-on which will be based on Varnish + ESI.
Hope to include beta version in 4.3.6

If Varnish is installed server side, can handle fine the cs-cart (and not only!) without any third party modifications.

There are a lot of techniques, but we experienced the best results with Nginx+Varnish.

Guys we are working on "Full page cache" add-on which will be based on Varnish + ESI.
Hope to include beta version in 4.3.6

imac, This is great news. Thank you!!!

For LiteSpeed as well?

I have been using Varnish to cache HTML pages for CS-Cart. There are lot of hurdles that are created by CS-Cart for no reason:

-Biggest hurdle is CSS/JS file name changes. CS-Cart keeps creating random CSS file names and delete old CSS/JS files when cache is cleaned. It makes it a huge problem for cached pages because they look like CRAP without CSS files. How difficult would it be to save all CSS files into style.css file and keep refreshing contents of it with cache cleaning?

-CS-Cart adds time tags at the end of some URLs - t= or ver=. @imac probably would be the best person to explain the reasoning behind it but it makes no sense whatsoever for ecommerce websites. You can use http headers to communicate any expiration you need but you don't mess with URLs which is extremely important for search engines. They want to see the same file everytime they access to your site. CS-Cart loves to mess with these files which cause lots of problems with search engines.

imac, This is great news. Thank you!!!
For LiteSpeed as well?


No plans for Litespeed yet.



-Biggest hurdle is CSS/JS file name changes. CS-Cart keeps creating random CSS file names and delete old CSS/JS files when cache is cleaned. It makes it a huge problem for cached pages because they look like CRAP without CSS files. How difficult would it be to save all CSS files into style.css file and keep refreshing contents of it with cache cleaning?

It’s a bit strange for me that your cache in Varnish lives longer than CS-Cart cache. Actually cache should be invalidated each time we changes something in admin area - that’s what we are working on right now.
How do you invalidate cache after you change something in admin area?

-CS-Cart adds time tags at the end of some URLs - t= or ver=. @imac probably would be the best person to explain the reasoning behind it but it makes no sense whatsoever for ecommerce websites. You can use http headers to communicate any expiration you need but you don’t mess with URLs which is extremely important for search engines. They want to see the same file everytime they access to your site. CS-Cart loves to mess with these files which cause lots of problems with search engines.

The “t” parameter is removed in 4.3.5. http://forum.cs-cart.com/tracker/issue-5936-query-strings-on-static-resources-slowing-down-cs-cart/page__gopid__23091#entry23091As for “ver” its important in order to reload the file in cache after we update the file. We use client-side cache for CSS & JS files.

No plans for Litespeed yet.

LiteSpeed has Varnish implementation for other software, so could be that its fairly easy to implement.

Please contact Michael at litespeed to see if integration can be accomplished. Litespeed tech is generally interested in accommodating to such integration. So it may well be worth contacting them.

It's a bit strange for me that your cache in Varnish lives longer than CS-Cart cache. Actually cache should be invalidated each time we changes something in admin area - that's what we are working on right now.
How do you invalidate cache after you change something in admin area?

The "t" parameter is removed in 4.3.5. http://forum.cs-cart.com/tracker/issue-5936-query-strings-on-static-resources-slowing-down-cs-cart/page__gopid__23091#entry23091As for "ver" its important in order to reload the file in cache after we update the file. We use client-side cache for CSS & JS files.

Hi imac, you are right, Varnish cache doesn't live longer than CS-Cart cache but then why not give us the ability to cache longer in Varnish cache? Ideally, I would want all my ".html" to be cached until the customer logins to their account. For this to work, you ned to stop creating all these mumbo jumbo file names for .js and .css file names. if you check any CS-Cart website on Google Cache, you will see everything distorted due to these fdi1jelfkj1elfkj1l3kfej31.css 1kjhcalsjdhcaskjhas.js file names that gets created every time cache refreshed.

What is the idea behind assigning random file names for css and .js files? This created lots of trouble for us when we integrated with third part websites for A/B testing or other services. Why can't we just have one styles.css and scripts.js under /var/cache/ folder?

Thanks for removing "t" parameter.