diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-15 15:36:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-15 15:36:10 +0000 |
commit | f4cbd7c63d0b3cc221b079ecff99a4693de3dabd (patch) | |
tree | fb42f0450a1fc221480e1600de4866133045946d /includes/cache.inc | |
parent | 125dbb1ab29c95962abdd5e405cd103a0f617ff0 (diff) | |
download | brdo-f4cbd7c63d0b3cc221b079ecff99a4693de3dabd.tar.gz brdo-f4cbd7c63d0b3cc221b079ecff99a4693de3dabd.tar.bz2 |
- Patch #118660 by agentrickard: re-order arguments of cache_set() to match PHP/Drupal conventions.
Diffstat (limited to 'includes/cache.inc')
-rw-r--r-- | includes/cache.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/cache.inc b/includes/cache.inc index 371d01bdb..2f656541d 100644 --- a/includes/cache.inc +++ b/includes/cache.inc @@ -74,11 +74,11 @@ function cache_get($key, $table = 'cache') { * * @param $cid * The cache ID of the data to store. + * @param $data + * The data to store in the cache. Complex data types must be serialized first. * @param $table * The table $table to store the data in. Valid core values are 'cache_filter', * 'cache_menu', 'cache_page', or 'cache'. - * @param $data - * The data to store in the cache. Complex data types must be serialized first. * @param $expire * One of the following values: * - CACHE_PERMANENT: Indicates that the item should never be removed unless @@ -90,7 +90,7 @@ function cache_get($key, $table = 'cache') { * @param $headers * A string containing HTTP header information for cached pages. */ -function cache_set($cid, $table = 'cache', $data, $expire = CACHE_PERMANENT, $headers = NULL) { +function cache_set($cid, $data, $table = 'cache', $expire = CACHE_PERMANENT, $headers = NULL) { db_lock_table($table); 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()) { |