Browse Source

Use actual cache methods instead of deprecated ones, fixed static method call in non-static context

batch-query-test
Alexander Makarov 9 years ago
parent
commit
608479dc53
  1. 6
      framework/caching/TagDependency.php

6
framework/caching/TagDependency.php

@ -49,7 +49,7 @@ class TagDependency extends Dependency
} }
} }
if (!empty($newKeys)) { if (!empty($newKeys)) {
$timestamps = array_merge($timestamps, $this->touchKeys($cache, $newKeys)); $timestamps = array_merge($timestamps, static::touchKeys($cache, $newKeys));
} }
return $timestamps; return $timestamps;
@ -93,7 +93,7 @@ class TagDependency extends Dependency
foreach ($keys as $key) { foreach ($keys as $key) {
$items[$key] = $time; $items[$key] = $time;
} }
$cache->mset($items); $cache->multiSet($items);
return $items; return $items;
} }
@ -114,6 +114,6 @@ class TagDependency extends Dependency
$keys[] = $cache->buildKey([__CLASS__, $tag]); $keys[] = $cache->buildKey([__CLASS__, $tag]);
} }
return $cache->mget($keys); return $cache->multiGet($keys);
} }
} }

Loading…
Cancel
Save