News: Do not cache if logged as admin, so it shows the admin buttons

This commit is contained in:
slawkens
2026-04-24 22:12:53 +02:00
parent def432d4b7
commit 81b8bd8a2c

View File

@@ -108,8 +108,9 @@ $title = 'Latest News';
$cache = Cache::getInstance();
$news_cached = false;
if($cache->enabled())
if($cache->enabled() && !admin()) {
$news_cached = News::getCached(NEWS);
}
if(!$news_cached)
{