Vinai / VinaiKopp-FavoriteProducts-Example

Example Magento 2 module to explore dynamic content on fully cached pages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Favorite Products Example

The purpose of this Magento 2 module is to demonstrate how to add dynamic, customer specific data to a page that is stored in the full page cache according to current best practices (March 2017).

This module is NOT intended for production!

Usage

This repository contains two versions of the module.

  • The version marked with the git tag start is the module without dynamic content. This version simply uses a hardcoded list of favorite product SKUs.

  • The version marked with the git tag complete represents the module with proper hole punching logic in place.

For further questions feel free to ping me at https://twitter.com/VinaiKopp

Licence: BSD-3-Clause
Author: Vinai Kopp
Copyright: Vinai Kopp 2017
Website: http://vinaikopp.com/

About

Example Magento 2 module to explore dynamic content on fully cached pages.


Languages

Language:PHP 87.7%Language:HTML 6.7%Language:JavaScript 5.6%