diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/cache.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/cache.inc b/includes/cache.inc index 3b0b149ff..be83cbcf3 100644 --- a/includes/cache.inc +++ b/includes/cache.inc @@ -92,9 +92,9 @@ function cache_get($key, $table = 'cache') { */ function cache_set($cid, $table = 'cache', $data, $expire = CACHE_PERMANENT, $headers = NULL) { db_lock_table($table); - db_query("UPDATE {%s} SET data = '%s', created = %d, expire = %d, headers = '%s' WHERE cid = '%s'", $table, $data, time(), $expire, $headers, $cid); + db_query("UPDATE {%s} SET data = %b, created = %d, expire = %d, headers = '%s' WHERE cid = '%s'", $table, $data, time(), $expire, $headers, $cid); if (!db_affected_rows()) { - @db_query("INSERT INTO {%s} (cid, data, created, expire, headers) VALUES ('%s', '%s', %d, %d, '%s')", $table, $cid, $data, time(), $expire, $headers); + @db_query("INSERT INTO {%s} (cid, data, created, expire, headers) VALUES ('%s', %b, %d, %d, '%s')", $table, $cid, $data, time(), $expire, $headers); } db_unlock_tables(); } |