mirror of
https://github.com/slawkens/myaac.git
synced 2026-04-25 11:53:31 +02:00
News: Do not cache if logged as admin, so it shows the admin buttons
This commit is contained in:
@@ -108,8 +108,9 @@ $title = 'Latest News';
|
|||||||
$cache = Cache::getInstance();
|
$cache = Cache::getInstance();
|
||||||
|
|
||||||
$news_cached = false;
|
$news_cached = false;
|
||||||
if($cache->enabled())
|
if($cache->enabled() && !admin()) {
|
||||||
$news_cached = News::getCached(NEWS);
|
$news_cached = News::getCached(NEWS);
|
||||||
|
}
|
||||||
|
|
||||||
if(!$news_cached)
|
if(!$news_cached)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user