diff --git a/core/lib/Drupal/Core/Cache/MemoryBackend.php b/core/lib/Drupal/Core/Cache/MemoryBackend.php index 975493c683..a0269f5301 100644 --- a/core/lib/Drupal/Core/Cache/MemoryBackend.php +++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php @@ -100,7 +100,7 @@ public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = []) { // Sort the cache tags so that they are stored consistently in the database. sort($tags); - // Do not create an object at this point to minimise the number of objects + // Do not create an object at this point to minimize the number of objects // garbage collection has to keep a track off. $this->cache[$cid] = [ 'cid' => $cid, diff --git a/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php b/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php index c6fa20ba98..841e4568a0 100644 --- a/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php +++ b/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php @@ -8,7 +8,7 @@ /** * Defines a memory cache implementation. * - * Stores cache items in memory using a PHP array. Cache data is not serialised + * Stores cache items in memory using a PHP array. Cache data is not serialized * thereby returning the same object as was cached. * * @ingroup cache @@ -40,7 +40,7 @@ public function set($cid, $data, $expire = MemoryCacheInterface::CACHE_PERMANENT assert(Inspector::assertAllStrings($tags), 'Cache tags must be strings.'); $tags = array_unique($tags); - // Do not create an object at this point to minimise the number of objects + // Do not create an object at this point to minimize the number of objects // garbage collection has to keep a track off. $this->cache[$cid] = [ 'cid' => $cid,