public function setValue($name, $value, $expiration = NULL) { $timeStart = microtime(TRUE); $result = parent::setValue($name, $value, $expiration); LogHelper::log_info(t("[@cacheType] Execution time for @successFlag storing '@entryName' entry is !executionTime", array('@cacheType' => $this->getCacheType(), '@entryName' => $this->assembleCacheEntryName($name), '!executionTime' => ExecutionPerformanceHelper::formatExecutionTime($timeStart), '@successFlag' => $result === FALSE ? 'UNSUCCESSFUL' : 'SUCCESSFUL'))); return $result; }
public function setValue($name, $value, $expirationTime = NULL, array $options = NULL) { $adjustedExpirationTime = $this->calculateEntryExpirationTime($expirationTime); $timeStart = microtime(TRUE); $result = parent::setValue($name, $value, $adjustedExpirationTime, $options); LogHelper::log_info(t( "[@cacheType] Execution time for@successFlag storing of '@entryName' entry is !executionTime", array( '@cacheType' => $this->getCacheType(), '@entryName' => $this->assembleCacheEntryName($name), '!executionTime' => LogHelper::formatExecutionTime($timeStart), '@successFlag' => (($result === FALSE) ? (' ' . t('UNSUCCESSFUL')) : '')))); return $result; }