Starting with Magento 2.2.0, page cache bug (github issue no 6818) was fixed by Magento. As it was initially fixed in Pearl Theme, starting with Pearl Theme v1.5.5 we decided to remove the fix and go with the Magento fix.
If you are using Pearl Theme v1.5.5 (or greater) on Magento version older than 2.2.0, you have two approaches to fix this bug:
- Upgrade Magento to version 2.2.0, and it will be fixed by the upgrade.
- If you can't upgrade to Magento 2.2.0, apply the patch from the below link by copying (overwriting) the current files with the patch files. After the patch is applied, run below commands:
php bin/magento setup:upgrade
rm -Rf var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/di;
Note: If you decide later to upgrade to Magento 2.2.0, make sure to also upgrade the Theme files with an version greater than (or equal to) 1.5.5.