Search

Page tree
Skip to end of metadata
Go to start of metadata

eZ Commerce uses the advanced caching features of eZ Platform and Symfony.

  • http-cache 
  • esi
  • h_include
  • hmvc

Introduction

eZ Commerce is using different caches. One of the most important cache is the http-cache which is able to speed up the shop enormously. Dynamic parts of the shop such as a basket preview or prices are displayed using dynmic caching features such as ESI or Javascript.

This ensures that only small parts of a page has to be generated in realtime.

Usage of ESI rendered blocks

ControllerPurposeCache settings
SilversolutionsEshopBundle:CustomerProfileData:showHeaderLoginDisplay infos about a user logged in in the top part of the pagePurged after login/logout and delegate process
SilversolutionsEshopBundle:Basket:showBasketPreviewDisplay a short version of the basket in the top part of the page

Purged when basket changes

Tags: siso_basket_<basketid>
siso_user_<userid>

SilversolutionsEshopBundle:PageLayout:getFooterFooter infos shared among all pagescaching strategy "service_menue"sec.
SilversolutionsEshopBundle:Bestsellers:getBestsellersEsiBesteller Box for catalog pagescaching strategy "product_list

SilversolutionsEshopBundle:Bestsellers:getCategoryBestsellers

SilversolutionsEshopBundle:EzFlow:showLastViewedProducts

Show last viewed products e.g. on landing pagescaching strategy "product_list
SisoSearchBundle:Search:productListProduct list in case user is logged inno caching
SilversolutionsEshopBundle:ProductType:productListProduct type list pagecaching strategy "product_type_children
SilversolutionsEshopBundle:Basket:showStoredBasketPreviewUser menu: display badge with number of products in stored comparison or number of stored basketscaching strategy "basket_preview

Purged when basket changes

Tags: siso_basket_<basketid>

SilversolutionsEshopBundle:Navigation:showMenuLeft menuTag: siso_menu
SilversolutionsEshopBundle:Navigation:showMenuMain menuTag: siso_menu

*caching strategy means:  defined in the yml file, details see: HTTP caching

Usage of cache tags

eZ Commerce is using cache tags to tag and purge content.

TagUsed forPurged by
siso_basket_<id>basket preview in the headerEvent: on basket change
siso_menufor the main menu and left side menus (product catalog)

content-<contentid>

TextmoduleseZ - when content (textmodules) are changed
siso_user_<userid>user specific data (show name of the user)when user logs in or out




FAQ

 How to solve the problem that the basket preview is not up to date and the box showing the user logged in as well?

This might be caused by a invalid configuration.

Please check if the setting in ezplatform.yml for purging the cache is set correctly:

ezpublish:
    http_cache:
        purge_type: local


  • local means the proxy of Symfony is used
  • if varnish or a CDN is used set purge_type to http





eZ Commerce uses the advanced caching features of eZ Platform and Symfony.

  • http-cache 
  • esi
  • h_include
  • hmvc

Introduction

eZ Commerce is using different caches. One of the most important cache is the http-cache which is able to speed up the shop enormously. Dynamic parts of the shop such as a basket preview or prices are displayed using dynmic caching features such as ESI or Javascript.

This ensures that only small parts of a page has to be generated in realtime.

Usage of ESI rendered blocks

ControllerPurposeCaching settings
SilversolutionsEshopBundle:CustomerProfileData:showHeaderLoginDisplay infos about a user logged in in the top part of the pagePurged after login/logout and delegate process
SilversolutionsEshopBundle:Basket:showBasketPreviewDisplay a short version of the basket in the top part of the page

Purged when basket changes

Tags:

siso_basket
SilversolutionsEshopBundle:PageLayout:getFooterFooter infos shared among all pages
SilversolutionsEshopBundle:Bestsellers:getBestsellersEsiBesteller Box for catalog pages

SilversolutionsEshopBundle:Bestsellers:getCategoryBestsellers

SilversolutionsEshopBundle:EzFlow:showLastViewedProducts

Show lats viewed products e.g. on landing pages
SisoSearchBundle:Search:productListProduct list in case user is logged in
SilversolutionsEshopBundle:ProductType:productListProduct type list page
SilversolutionsEshopBundle:Basket:showStoredBasketPreviewUser menu: display badge with number of products in stored comparison or number of stored baskets
SilversolutionsEshopBundle:Navigation:showMenuLeft menuTag: siso_menu
SilversolutionsEshopBundle:Navigation:showMenuMain menuTag: siso_menu


Usage of cache tags

eZ Commerce is using cache tags to tag and purge content.

TagUsed forPurged by
siso_basket_<id>basket preview in the header
siso_menufor the main menu and left side menus (product catalog)
textmodule

header login




FAQ

 How to solve the problem that the basket preview is not up to date and the box showing the user logged in as well?

This might be caused by a invalid configuration.

Please check if the setting in ezplatform.yml for purging the cache is set correctly:

ezpublish:
    http_cache:
        purge_type: local


  • local means the proxy of Symfony is used
  • if varnish or a CDN is used set purge_type to http





  • No labels