2018年3月15日星期四

Magento2开发教程 - Public(公共的)和 私人(private)的缓存内容

Magento 2的页面缓存存储整个缓存页面;页面存储取决于内容是否是私人或公共的。这些术语定义如下:
  • Public, 可以向许多客户展示.
    公开的内容存储在缓存存储(文件系统,数据库,或Redis),或Varnish。公共内容包括页眉、页脚和类别列表。
  • Private, 这是不存储在Magento服务器缓存;相反,它是存储在客户端。
    私人内容包括收藏、购物车、客户名称、地址。私有内容应限制在页面总内容的一小部分。

指定私人内容

按以下步骤指定私人内容:
  • 1: 创建一段代码
  • 2: 创建一个Magento 2块和模版
  • 3: 配置一个UI组件
  • 4: 是私人内容生效

2 条评论:

  1. Do you need to increase your credit score?
    Do you intend to upgrade your school grade?
    Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
    Do you need any information concerning any database.
    Do you need to retrieve deleted files?
    Do you need to clear your criminal records or DMV?
    Do you want to remove any site or link from any blog?
    you should contact this hacker, he is reliable and good at the hack jobs..
    contact : cybergoldenhacker at gmail dot com

    回复删除
  2. I can’t say much but with my experience through divorce, I had no one until I met hackingsetting50@gmail.com online then I contacted him, surprisingly he helped me hack into my partner's phone and all his social media platforms and i can now access everything and even documented and printed stuffs to show as evidence , now I’m happy with my kids and working for Riches. I hope this helps anyone in need.

    Thanks.

    回复删除

注意:只有此博客的成员才能发布评论。

Also Read: