Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Cache/DatabaseBackend.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Core\Cache; | 3 namespace Drupal\Core\Cache; |
4 | 4 |
5 use Drupal\Component\Assertion\Inspector; | |
5 use Drupal\Component\Utility\Crypt; | 6 use Drupal\Component\Utility\Crypt; |
6 use Drupal\Core\Database\Connection; | 7 use Drupal\Core\Database\Connection; |
7 use Drupal\Core\Database\SchemaObjectExistsException; | 8 use Drupal\Core\Database\SchemaObjectExistsException; |
8 | 9 |
9 /** | 10 /** |
220 $item += [ | 221 $item += [ |
221 'expire' => CacheBackendInterface::CACHE_PERMANENT, | 222 'expire' => CacheBackendInterface::CACHE_PERMANENT, |
222 'tags' => [], | 223 'tags' => [], |
223 ]; | 224 ]; |
224 | 225 |
225 assert('\Drupal\Component\Assertion\Inspector::assertAllStrings($item[\'tags\'])', 'Cache Tags must be strings.'); | 226 assert(Inspector::assertAllStrings($item['tags']), 'Cache Tags must be strings.'); |
226 $item['tags'] = array_unique($item['tags']); | 227 $item['tags'] = array_unique($item['tags']); |
227 // Sort the cache tags so that they are stored consistently in the DB. | 228 // Sort the cache tags so that they are stored consistently in the DB. |
228 sort($item['tags']); | 229 sort($item['tags']); |
229 | 230 |
230 $fields = [ | 231 $fields = [ |