We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e29f8c + 04933e5 commit c248286Copy full SHA for c248286
config/berti.config.php
@@ -120,12 +120,23 @@
120
return $cacheItem->get();
121
}
122
123
- $html = $renderer(
124
- $content,
125
- $document,
126
- $documentCollection,
127
- $assetCollection
128
- );
+ try {
+ $html = $renderer(
+ $content,
+ $document,
+ $documentCollection,
+ $assetCollection
129
+ );
130
+ } catch (\Exception $e) {
131
+ echo 'Temporary error, will retry in 60s: ' . $e->getMessage() . PHP_EOL;
132
+ sleep(60);
133
134
135
136
137
138
139
+ }
140
141
$cacheItem->set($html);
142
$cache->save($cacheItem);
0 commit comments