File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ public function CMSEditLink(): ?string
288288 */
289289 public static function current_site_config (): SiteConfig
290290 {
291- $ siteConfig = DataObject:: get_one ( SiteConfig::class );
291+ $ siteConfig = SiteConfig::get ()-> setUseCache ( true )-> first ( );
292292 if (!$ siteConfig ) {
293293 $ siteConfig = SiteConfig::make_site_config ();
294294 }
@@ -302,7 +302,7 @@ public function requireDefaultRecords()
302302 {
303303 parent ::requireDefaultRecords ();
304304
305- $ config = DataObject:: get_one ( SiteConfig::class );
305+ $ config = SiteConfig::get ()-> setUseCache ( true )-> first ( );
306306
307307 if (!$ config ) {
308308 SiteConfig::make_site_config ();
Original file line number Diff line number Diff line change 1414 ],
1515 "require" : {
1616 "php" : " ^8.3" ,
17- "silverstripe/framework" : " ^6" ,
17+ "silverstripe/framework" : " ^6.1 " ,
1818 "silverstripe/admin" : " ^3"
1919 },
2020 "require-dev" : {
You can’t perform that action at this time.
0 commit comments