@@ -21,14 +21,14 @@ |
||
21 | 21 | if (empty($owner->dataRecord)) { |
22 | 22 | return; |
23 | 23 | } |
24 | - if(Security::getCurrentUser()) { |
|
24 | + if (Security::getCurrentUser()) { |
|
25 | 25 | return; |
26 | 26 | } |
27 | 27 | if (Versioned::LIVE !== Versioned::get_stage()) { |
28 | 28 | return; |
29 | 29 | } |
30 | 30 | $sc = SiteConfig::current_site_config(); |
31 | - if($sc->HasCaching) { |
|
31 | + if ($sc->HasCaching) { |
|
32 | 32 | $cacheTime = $sc->PublicCacheDurationInSeconds ?: $owner->dataRecord->PublicCacheDurationInSeconds; |
33 | 33 | HTTPCacheControlMiddleware::singleton() |
34 | 34 | ->enableCache() |