Commit 3a623de2 authored by bdragon's avatar bdragon
Browse files

Revert "Issue #2999614 by visabhishek: Replace uses of deprecated functions"

This reverts commit 58b9eb98.
parent 58b9eb98
......@@ -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 <= \Drupal::time()->getRequestTime()) {
if ($cache->expire != CacheBackendInterface::CACHE_PERMANENT && $cache->expire <= REQUEST_TIME) {
$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 = \Drupal::time()->getRequestTime() - 1;
$item->expire = REQUEST_TIME - 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