Commit 58b9eb98 authored by visabhishek's avatar visabhishek Committed by bdragon
Browse files

Issue #2999614 by visabhishek: Replace uses of deprecated functions

parent a91175be
......@@ -119,7 +119,7 @@ class MemcacheBackend implements CacheBackendInterface {
$cache->valid = TRUE;
// Items that have expired are invalid.
if ($cache->expire != CacheBackendInterface::CACHE_PERMANENT && $cache->expire <= REQUEST_TIME) {
if ($cache->expire != CacheBackendInterface::CACHE_PERMANENT && $cache->expire <= \Drupal::time()->getRequestTime()) {
$cache->valid = FALSE;
}
......@@ -216,7 +216,7 @@ class MemcacheBackend implements CacheBackendInterface {
public function invalidateMultiple(array $cids) {
foreach ($cids as $cid) {
if ($item = $this->get($cid)) {
$item->expire = REQUEST_TIME - 1;
$item->expire = \Drupal::time()->getRequestTime() - 1;
$this->memcache->set($cid, $item);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment