public function getValue($name) { $timeStart = microtime(TRUE); $value = parent::getValue($name); LogHelper::log_info(t("[@cacheType] Execution time for retrieving '@entryName' entry is !executionTime. @successFlag", array('@cacheType' => $this->getCacheType(), '@entryName' => $this->assembleCacheEntryName($name), '!executionTime' => ExecutionPerformanceHelper::formatExecutionTime($timeStart), '@successFlag' => isset($value) ? 'CACHE HIT' : 'Cache NOT hit'))); return $value; }
public function getValue($name, array $options = NULL) { $timeStart = microtime(TRUE); $value = parent::getValue($name, $options); LogHelper::log_info(t( "[@cacheType] Execution time for@successFlag retrieving of '@entryName' entry is !executionTime", array( '@cacheType' => $this->getCacheType(), '@entryName' => $this->assembleCacheEntryName($name), '!executionTime' => LogHelper::formatExecutionTime($timeStart), '@successFlag' => (isset($value) ? '' : (' ' . t('UNSUCCESSFUL')))))); return $value; }