This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -279,8 +296,8 @@ public function set($key, $value, $ttl = 0, array $tags = null)
thrownew \InvalidArgumentException('Cannot set resource into cache. Only serializable object, array, string, int, double or bool can be set as value');
}
$ttl = (int)$ttl;
$now = time();
$ttl= (int)$ttl;
$now= time();
$isSerialized = false;
/**
@@ -315,13 +332,13 @@ public function set($key, $value, $ttl = 0, array $tags = null)
thrownew \InvalidArgumentException($err);
}
$value = serialize($value);
$value= serialize($value);
$isSerialized = true;
d('serialized object: ' . $value);
} elseif ($this->bCompress && is_array($value)) {
$value = \serialize($value);
$value= \serialize($value);
$isSerialized = true;
}
@@ -335,10 +352,10 @@ public function set($key, $value, $ttl = 0, array $tags = null)
}
d('cp');
$aData = array('_id' => $this->nameSpace . $key,
'd' => $data,
'created' => $now,
'exp' => $exp);
$aData = array('_id'=> $this->nameSpace . $key,
'd' => $data,
'created' => $now,
'exp' => $exp);
d('aData: ' . print_r($aData, true));
if ($isSerialized) {
@@ -362,8 +379,8 @@ public function set($key, $value, $ttl = 0, array $tags = null)
* Add item to cache but only if it does not already exist
*
* @param string $key
* @param mixed $value
* @param int $ttl
* @param mixed $value
* @param int $ttl
*/
publicfunctionadd($key, $value, $ttl = 0)
{
@@ -387,7 +404,7 @@ public function setMulti(array $aItems, $ttl = 0)
*
* @return mixed string | false if data with this key does not exist
* If value is found but is expired, then the item is removed from cache
* as a way to do mainainance without relying on cron job
* as a way to do maintenance without relying on cron job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$description = 'A tag is a keyword or label that categorizes your question with other, similar questions. Using the right tags makes it easier for others to find and answer your question.';
$description = '@@A tag is a keyword or label that categorizes your question with other, similar questions. Using the right tags makes it easier for others to find and answer your question@@.';
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -226,7 +226,7 @@ public static function formatException(\Exception $e, $message = '', \Lampcms\I1
* @todo if Tr was passed here
* then we can translate string
*/
$message = (true === LAMPCMS_DEBUG) ? $e->getMessage() : 'Error occurred. Administrator has been notified or the error. We will fix this as soon as possible'; //$oTr->get('generic_error', 'exceptions');
$message = (defined('LAMPCMS_DEBUG') && true === LAMPCMS_DEBUG) ? $e->getMessage() : 'Error occurred. Administrator has been notified or the error. We will fix this as soon as possible'; //$oTr->get('generic_error', 'exceptions');
}
/**
@@ -623,10 +623,6 @@ class ExternalAuthException extends AuthException
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters