Questions tagged [holepunching]

Hole punching is a system that allows you to mark certain sections of a page to be loaded each time and never cached while still caching the rest of the page. Bolt will load a page from the cache and then fill in the holes with dynamic content.

Filter by
Sorted by
Tagged with
4 votes
0 answers
284 views

Magento2 Holepunch Cache for Pricing

I have a Magento 2 website which has been set up to allow customers to have their own pricing. However, as a result of this the FPC (for category and product pages) is now being generated uniquely for ...
Dean Morgan's user avatar
3 votes
1 answer
1k views

Magento 2 - Page cache with hole punch

Magento page cache cached some of the blocks that has dynamic value, like Wishlist count on header for logged in customers I can make it dynamic using Ajax, but then it came to my knowledge that it ...
Shoaib Munir's user avatar
  • 9,344
2 votes
1 answer
602 views

Is hole punching cache method working in Magento2? How to implement in Particular Block in Magento2?

Can anyone please explain hole punching Cache method and how to implement in particular one block in Magento 2.
Rutvee Sojitra's user avatar
1 vote
3 answers
3k views

How to use Identities for to implementing hole punching in my custom module magento 2

I tried this link link Not working for me. Any other way to achieve the hole punching.
Renga's user avatar
  • 371
1 vote
0 answers
82 views

Magento 2.1 : How to create dynamic custom header link without using cacheable = false

The cacheable = false works fine, but fpc gets completely disabled and pages are too slow. Here is the default.xml <referenceContainer name="header.panel"> <block class="Custom\Mod\...
Midlaj's user avatar
  • 397
5 votes
1 answer
1k views

Hole punching full page cache on magento 2

I'm working in Magento 2 industry as a developer. I'm in a situation that i need to make a hole punching for a specific block. The block contains the reviews got from Trustpilot. I use curl to call ...
thanhdv2811's user avatar
1 vote
1 answer
2k views

FPC (lesti) won't holepunch certain area [closed]

Working on a webshop with lesti:fpc + redis and magento caching. Now i encounter the problem that (when lesti fpc is enabled) holepunching a certain module isn't working. The part view2.phtml (...
Bram Hammer's user avatar
1 vote
1 answer
517 views

CMS Page Breadcrumbs Cache Issue

I am having an issue with breadcrumbs on Magento EE 1.11.2.0 The problem is: when multiple pages are being processed by FPC the CMS page picks up breadcrumb title from another page. e.g. if http://...
Zain Baloch's user avatar
3 votes
0 answers
216 views

Full Page Cache - Hole punch for timestamp

Many of my templates require a timestamp (for timers), when implementing full page cache (using nitrogento) the timestamp gets cached too which ends up showing wrong timestamp. What methods can I ...
pzirkind's user avatar
  • 2,906
1 vote
0 answers
111 views

How to holepunch a block inside a $productCollection loop?

I'm trying to create a block inside the category/list page, that is not cached by FPC. Specifically, I have an addtocart block that requires some logic depending on user configuration, this ...
Martín Peverelli's user avatar
3 votes
2 answers
2k views

What's the difference between `getCacheKeyInfo` and `_getCacheId`?

What's the difference between getCacheKeyInfo and _getCacheId? Why _getCacheId is not enough to cache a block?
tmm's user avatar
  • 359
5 votes
1 answer
2k views

Cache blocks that contain form_key (i.e. dynamic content)

I wonder, if there is a best practice to use block caching for blocks that contain a form with the form_key input (CSRF token). I am not talking about full page cache hole punching, but the standard ...
Fabian Schmengler's user avatar
4 votes
2 answers
2k views

Hole punched block doesn't load within full page cached page

Intially when the cache is cleared and I visit a page the block and corresponding template load perfectly. Then, when I revisit this page the block isn't loaded at all. Am I missing something in ...
easymoden00b's user avatar
  • 1,277
0 votes
1 answer
429 views

Adding items to Cache Storage Management

I'm using FPC with redis. I'd like to be able to flush the homepage or category pages from this page. How to I add these items to the Cache Storage Management? Hole punching? But how do I link the ...
easymoden00b's user avatar
  • 1,277
0 votes
1 answer
399 views

Cache Hole Punch Block

I'm wondering if it is possible to hole punch the block cache, or if I need to rethink how the block is being included. The PHTML file is being brought in with a _parepLayout() method in a module (...
Dan Joseph's user avatar
2 votes
2 answers
2k views

Hole-punch Extendware primary cache

I'm working with a copy of Magento 1.4EE which has Extendware FPC installed. I'm trying to get breadcrumbs working properly for products that are within more than one category. This is my first time ...
carbide20's user avatar
  • 485
0 votes
1 answer
980 views

Calling $this->getChildHtml on a new block outside template file

I'd like to call $this->getChildHtml('product_type_data') to get product's price outside view.phtml template file. Currently I have echo $this->getChildHtml('product_type_data') and that ...
Alan's user avatar
  • 917
2 votes
2 answers
1k views

Disable FPC for controller

So normally when implementing FPC we'll holepunch certain blocks out that have dynamic data. What I can't seem to figure out, is there not a way to holepunch a url. So for example if we have /index/...
Aram Papazian's user avatar
3 votes
1 answer
1k views

Punch hole in FPC for a static block inside a CMS page, without a custom module

On the homepage of our site, we have 3 banners which are contained in a static block inside the CMS page of my homepage. The static block also contains a widget, the widget select random banners ...
Tobias Hagenbeek's user avatar
4 votes
2 answers
6k views

How to hole punch a child block added inside catalog/product/list block

Scenario: I have category landing page, in which another vendor has customized to add "Purchased" text instead of "Add to cart" in case the user has purchased it, hence this will be different for ...
Curious Explorer's user avatar
6 votes
2 answers
8k views

Issues in implementing Holepunching in Magento FPC

I have a block close to what the 'welcome' block in the header is but slightly different. Holepunching does not seem to be working for me I have mostly referred to this link. Here's my code: I have ...
Curious Explorer's user avatar
18 votes
1 answer
3k views

How to hole-punch full page cache without custom module

Our full page cache seems to be based on session. If I open an incognito window with chrome and visit one of the pages, it warms the cache, and the second page load is much faster, however, if I close ...
Jeffrey L. Roberts's user avatar
9 votes
1 answer
192 views

Theme level placeholder xml

I am developing a custom theme for Magento on top of Enterprise and we're trying to use full page cache. We recently discovered that we need some custom placeholders (aka hole punches) in our theme so ...
Jake A. Smith's user avatar
10 votes
1 answer
762 views

Holepunching of header in magento store

I have implemented hole-punching of header in Magento, and even though I have got it working on a per-customer basis, I need the ability to take this one level deeper by making it work on diff cart ...
Nirav Sheth's user avatar