/**
  * Disable page cache if needed when admin is logged as customer
  *
  * @param \Magento\PageCache\Model\Config $subject
  * @param bool $result
  * @return bool
  */
 public function afterIsEnabled(\Magento\PageCache\Model\Config $subject, $result)
 {
     if ($result) {
         $disable = $this->_scopeConfig->getValue('mfloginascustomer/general/disable_page_cache', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
         $adminId = $this->_customerSession->getLoggedAsCustomerAdmindId();
         if ($disable && $adminId) {
             $result = false;
         }
     }
     return $result;
 }