Skip to content

Commit 99c59a2

Browse files
author
Roman Lytvynenko
committed
MC-37306: Sitemap generated by cron have wrong image URL (cache path)
1 parent fafb06d commit 99c59a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Sitemap/Model/Observer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ public function scheduledGenerateSitemaps()
123123
true
124124
);
125125
$sitemap->generateXml();
126-
$this->appEmulation->stopEnvironmentEmulation();
127126
} catch (\Exception $e) {
128127
$errors[] = $e->getMessage();
128+
} finally {
129+
$this->appEmulation->stopEnvironmentEmulation();
129130
}
130131
}
131132
if ($errors && $recipient) {

0 commit comments

Comments
 (0)