File tree 5 files changed +18
-2
lines changed
app/code/Magento/Cron/Model
setup/src/Magento/Setup/Controller
5 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ ############################################
2
+ ## uncomment the line below to enable developer mode
3
+
4
+ # SetEnv MAGE_MODE developer
5
+
1
6
############################################
2
7
## uncomment these lines for CGI mode
3
8
## make sure to specify the correct cgi php binary file name
Original file line number Diff line number Diff line change
1
+ ############################################
2
+ ## uncomment the line below to enable developer mode
3
+
4
+ # SetEnv MAGE_MODE developer
5
+
1
6
############################################
2
7
## uncomment these lines for CGI mode
3
8
## make sure to specify the correct cgi php binary file name
Original file line number Diff line number Diff line change @@ -370,7 +370,8 @@ protected function _cleanup($groupId)
370
370
$ now = $ this ->timezone ->scopeTimeStamp ();
371
371
/** @var Schedule $record */
372
372
foreach ($ history as $ record ) {
373
- if (strtotime ($ record ->getExecutedAt ()) < $ now - $ historyLifetimes [$ record ->getStatus ()]) {
373
+ $ checkTime = strtotime ($ record ->getExecutedAt () ? $ record ->getExecutedAt () : $ record ->getScheduledAt ());
374
+ if ($ checkTime < $ now - $ historyLifetimes [$ record ->getStatus ()]) {
374
375
$ record ->delete ();
375
376
}
376
377
}
Original file line number Diff line number Diff line change
1
+ ############################################
2
+ ## uncomment the line below to enable developer mode
3
+
4
+ # SetEnv MAGE_MODE developer
5
+
1
6
############################################
2
7
## uncomment these lines for CGI mode
3
8
## make sure to specify the correct cgi php binary file name
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function phpRawpostAction()
103
103
'responseType ' => $ responseType ,
104
104
'data ' => [
105
105
'version ' => PHP_VERSION ,
106
- 'ini ' => ini_get ( ' always_populate_raw_post_data ' )
106
+ 'ini ' => $ iniSetting
107
107
]
108
108
];
109
109
You can’t perform that action at this time.
0 commit comments