|
|
@@ -74,7 +74,7 @@ class DashboardAdminController extends BackendController |
|
|
|
'countUsersOnline' => $this->getUserModule()->getRepository()->countUsersOnline(), |
|
|
|
'countTicketsAdminOpen' => $this->getTicketModule()->getRepository()->countTicketsAdminStatusOpen(), |
|
|
|
'countTicketsAdminUnread' => $this->getTicketModule()->getRepository()->countTicketsAdminUnreadByUser($this->getUserCurrent()), |
|
|
|
'statisticsCacheHtml' => \Yii::$app->cache->get('dashboard_statistics') ?: '' |
|
|
|
'statisticsCacheHtml' => \Yii::$app->cache->get('dashboard_statistics5') ?: '' |
|
|
|
]); |
|
|
|
} |
|
|
|
|
|
|
@@ -86,7 +86,7 @@ class DashboardAdminController extends BackendController |
|
|
|
|
|
|
|
public function actionAjaxStatisticsHtml() |
|
|
|
{ |
|
|
|
return \Yii::$app->cache->getOrSet('dashboard_statistics', function () { |
|
|
|
return \Yii::$app->cache->getOrSet('dashboard_statistics5', function () { |
|
|
|
$producerModule = $this->getProducerModule(); |
|
|
|
$pointSaleModule = $this->getPointSaleModule(); |
|
|
|
$userModule = $this->getUserModule(); |