Posted by EndEd on April 26, 2012 at 2:37am
Hi
We are working on a commerce site with the following caracteristics:
- We have 4 different roles (anomymous, standard, special and admins).
- We have a shopping cart block visible in all pages (except checkout). This is of course a dynamic block that varies per user, not per role.
- All users and roles can see this shopping cart block (including anonymous, as everybody can order to us).
- The content (markup) displayed in most pages vary per rol.
- For example our catalog page displays a list of product teasers and the information shown in those teasers is different for anonymous and for standard (logued-in) users (special role will see another markup and so admins).
- We also have other places that vary per rol, like some link tooltips or page helps (more info for anomymous in the case of helps).
So with all this in mind could you explain a little bit how a commerce platform would be benefit from the 5s microcache nginx config and if our setup could benefit too?
Are there other strategies we could use for a setup like this from a performance point of view?
Actually we are using APC, Memcache and views and panels content cache aware caches. Wish to get some kind of bullet proof config that permits us to use something like boost or varnish with this kind of setup for anon.
Comments
BOA automatically optimizes
BOA automatically optimizes caching for known commerce or ubercart based install profiles and when ubercart is present (in any profile). The 5s or 1s microcaching doesn't help the way Boost helps for anonymous traffic, but it does protect your site from intended or unintended DoS-like attempts, since even with 1000 requests per second for the same URL, it hits Drupal only once per second, or once per 5 seconds.
Note also that even 1s or 5s cache uses cookie as a key, if present, so it is safe, as every visitor, after adding something to his/her cart, will see only its personal cache.