summaryrefslogtreecommitdiff
path: root/program/include/cache.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/cache.inc')
-rw-r--r--program/include/cache.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/cache.inc b/program/include/cache.inc
index 9b01c9e0c..8d088e57b 100644
--- a/program/include/cache.inc
+++ b/program/include/cache.inc
@@ -69,7 +69,7 @@ function rcube_write_cache($key, $data, $session_cache=FALSE)
if ($CACHE_KEYS[$key])
{
$DB->query("UPDATE ".get_table_name('cache')."
- SET created=NOW(),
+ SET created=now(),
data=?
WHERE user_id=?
AND cache_key=?",
@@ -82,7 +82,7 @@ function rcube_write_cache($key, $data, $session_cache=FALSE)
{
$DB->query("INSERT INTO ".get_table_name('cache')."
(created, user_id, session_id, cache_key, data)
- VALUES (NOW(), ?, ?, ?, ?)",
+ VALUES (now(), ?, ?, ?, ?)",
$_SESSION['user_id'],
$session_cache ? $sess_id : 'NULL',
$key,