summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Skovgaard Gielfeldt2012-10-04 13:34:18 (GMT)
committer Thomas Skovgaard Gielfeldt2012-10-04 13:37:40 (GMT)
commit9844447fb02516de5e839329a5484f5d20e00716 (patch)
treea32cb3b7e54f9b8001c957fa89de4160d1ad1eba
parentdff0a1928045d7f79ea7edb2283d80c2828994da (diff)
Issue #1803174 by gielfeldt - Fetching data from cache without taking cache table into account7.x-1.3
-rwxr-xr-xcache_graceful.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache_graceful.module b/cache_graceful.module
index c88e0c7..c8a2b22 100755
--- a/cache_graceful.module
+++ b/cache_graceful.module
@@ -119,7 +119,7 @@ function cache_graceful($key, $args, $table = 'cache', $expire = NULL, $prefetch
$update = FALSE;
$time = time();
// Get cache
- if (($cache = cache_get($key)) && $cache->expire >= $time) {
+ if (($cache = cache_get($key, $table)) && $cache->expire >= $time) {
// watchdog('cache_graceful', 'Cache hit (' . $cache->data['expire'] . ') (' . $time . ')', array(), WATCHDOG_DEBUG);
if ($cache->data['expire'] < $time && lock_may_be_available($key)) {
// Soft expire, prefetch