Update to drupal-org-drupal 8.0.0-rc2. For more information, see https://www.drupal.org/node/2598668
This commit is contained in:
parent
f32e58e4b1
commit
8e18df8c36
3062 changed files with 15044 additions and 172506 deletions
|
@ -145,10 +145,8 @@ class AliasManager implements AliasManagerInterface, CacheDecoratorInterface {
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($path_lookups)) {
|
||||
$twenty_four_hours = 60 * 60 * 24;
|
||||
$this->cache->set($this->cacheKey, $path_lookups, $this->getRequestTime() + $twenty_four_hours);
|
||||
}
|
||||
$twenty_four_hours = 60 * 60 * 24;
|
||||
$this->cache->set($this->cacheKey, $path_lookups, $this->getRequestTime() + $twenty_four_hours);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,7 +173,6 @@ class AliasManager implements AliasManagerInterface, CacheDecoratorInterface {
|
|||
// Look for path in storage.
|
||||
if ($path = $this->storage->lookupPathSource($alias, $langcode)) {
|
||||
$this->lookupMap[$langcode][$path] = $alias;
|
||||
$this->cacheNeedsWriting = TRUE;
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
@ -216,8 +213,13 @@ class AliasManager implements AliasManagerInterface, CacheDecoratorInterface {
|
|||
// happens if a cache key has been set.
|
||||
if ($this->preloadedPathLookups === FALSE) {
|
||||
$this->preloadedPathLookups = array();
|
||||
if ($this->cacheKey && $cached = $this->cache->get($this->cacheKey)) {
|
||||
$this->preloadedPathLookups = $cached->data;
|
||||
if ($this->cacheKey) {
|
||||
if ($cached = $this->cache->get($this->cacheKey)) {
|
||||
$this->preloadedPathLookups = $cached->data;
|
||||
}
|
||||
else {
|
||||
$this->cacheNeedsWriting = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -242,14 +244,12 @@ class AliasManager implements AliasManagerInterface, CacheDecoratorInterface {
|
|||
// Try to load alias from storage.
|
||||
if ($alias = $this->storage->lookupPathAlias($path, $langcode)) {
|
||||
$this->lookupMap[$langcode][$path] = $alias;
|
||||
$this->cacheNeedsWriting = TRUE;
|
||||
return $alias;
|
||||
}
|
||||
|
||||
// We can't record anything into $this->lookupMap because we didn't find any
|
||||
// aliases for this path. Thus cache to $this->noAlias.
|
||||
$this->noAlias[$langcode][$path] = TRUE;
|
||||
$this->cacheNeedsWriting = TRUE;
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace Drupal\Core\Path;
|
|||
|
||||
use Drupal\Core\Cache\CacheBackendInterface;
|
||||
use Drupal\Core\Cache\CacheCollector;
|
||||
use Drupal\Core\Database\Connection;
|
||||
use Drupal\Core\State\StateInterface;
|
||||
use Drupal\Core\Lock\LockBackendInterface;
|
||||
|
||||
|
|
Reference in a new issue