Skip to content

Commit 9a8d7d6

Browse files
authored
Removed timeout + disabled on post requests
1 parent 5679f4c commit 9a8d7d6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Observer/Controller/ActionPredispatch.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,13 @@ public function execute(
8787
return; // It's ajax request
8888
}
8989

90-
$time = $this->date->gmtTimestamp();
91-
if ($this->backendSession->getLastMfNtfCheck() > $time - self::TIMEOUT) {
92-
return; // It's not time
90+
if ($observer->getRequest()->getMethod() == 'POST') {
91+
return; // It's post request
9392
}
9493

9594
$this->checkCacheTypes();
9695
$this->checkReviews();
9796

98-
$this->backendSession->setLastMfNtfCheck($time);
9997
}
10098

10199
/**
@@ -140,4 +138,4 @@ protected function checkReviews()
140138
);
141139
}
142140
}
143-
}
141+
}

0 commit comments

Comments
 (0)