summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Skovgaard Gielfeldt2012-10-04 13:34:18 (GMT)
committer Thomas Skovgaard Gielfeldt2012-10-04 13:34:18 (GMT)
commit45c8195cee28e332a159bd8dcac85f8647169480 (patch)
treed0d78108353cb534b9c993e98ed3ed4d8d1f9392
parent194a60ecfec7837ce2a539149f668f329c1cc576 (diff)
Issue #1803174 by gielfeldt - Fetching data from cache without taking cache table into account6.x-1.6
-rwxr-xr-xcache_graceful.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache_graceful.module b/cache_graceful.module
index e2d16bc..83590c2 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