It would be really great if you could implement Nginx support for the add-on and share it with the community :)
The add-on itself is free and open-source, but we haven't received any pull requests for now.
Hello,
Well, it isnt really an addon, its just a syntax which will deliver complete prerendered pages (load time is approx 500 ms on first load). I just need to figure out how to exclude customers who have done an action on the store, but whenever that's done I will do that for sure! Any support regarding this is appreciated though :grin:
If any of you guys have an idea on how to implement the followi, that'd be great:
So the basic problem as of right now is that nginx needs to detect whether you are a normal user or a user which has done some sort of action. Therefore I have tried many things, like embedding javascript which will add a cookie whenever you click on a button which has the class add-cookie. This of course is a way to annoying method of doing this. Therefore it would be great if someone could make some sort of addon which will add a cookie whenever an user does such action. e.g.
Whenever I click the add_to_cart button, a cookie called 'unique_content' should be added. This should be somehow embedded in the add_to_cart function, I just havent found a proper way to do this. The same applies for every other button regarding this. E.g.:
- wishlist
- comparison
- buy together
- login / logout
- etc.
If anyone would have some indication on how to do this, please contact me!
//EDIT
Proper configuring of Nginx HTTP caching will take much more time than doing so in Varnish, just because of its syntax simplicity.
I have to say that I have to disagree with this point of yours, it really depends on how you want to use your resources. Yes you could make an overkill setup that will make it go to 450ms, but it really is just not worth it.
This would require you to setup some sort of caching server in front of the origin server which would validate the request to decide whether it is a hit or miss.
My script on the other hand is 9 lines of code that will be embedded into the regular nginx script that is provided by cs-cart. Which for sure is less than your entire varnish configuration!
Furthermore I'd also like to talk about your statement about varnish caching every block.
First of all, nginx has many types of caching. It for example has fastcgi caching (aka php caching), full page caching and many more things. Therefore the more frequent php requests are being cached as well.
Secondly, nginx is faster in most scenerios as it has the ability to pass requests through sockets, and not through an http port, which also improves the speed by a ton!