function OA_Dashboard_Widget_GraphOAC($aParams) { parent::OA_Dashboard_Widget_Graph($aParams); $this->oTpl->setCacheLifetime(new Date_Span('0-8-0-0')); if (!$this->oTpl->is_cached()) { $oDashboard = new OA_Central_Dashboard(); if ($aData = $oDashboard->getCommunityStats()) { $this->setData($aData); } } }
function getCacheId() { return array_merge(parent::getCacheId(), array(OA_Permission::getAccountId())); }