I am having a strange issue regarding built-in FPC in magento2.
I have a custom module, in its index controller, it just renders a phtml
file. This phtml file shows some information retrieving it from a custom table. This is just a simple thing that I have done here.
The problem is when I disable FPC in magento 2 the contents are displayed correctly, but when I enable the FPC than it renders the blank page .
See below two screeshot for the scenario analysis.
Ok so what I have tried till now.
I read somewhere that including below code on block construct function excludes the block from FPC.
public function __construct(){
$this->_isScopePrivate = true;
}
But it didn't worked.
What i want?
I want to exclude my module from FPC.
Can anyone help me or enlight with some insights?
Thanks.