Skip to content

Commit

Permalink
FIX Do not cache current site config
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 10, 2024
1 parent cbf0bbc commit 8f65906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/SiteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function CMSEditLink()
*/
public static function current_site_config()
{
$siteConfig = DataObject::get_one(SiteConfig::class);
$siteConfig = DataObject::get_one(SiteConfig::class, null, false);
if (!$siteConfig) {
$siteConfig = self::make_site_config();
}
Expand Down

0 comments on commit 8f65906

Please sign in to comment.