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.
1 parent 0e29f8c commit 04933e5Copy full SHA for 04933e5
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