diff --git a/core/includes/cache.inc b/core/includes/cache.inc index b39b7ff..d31dd18 100644 --- a/core/includes/cache.inc +++ b/core/includes/cache.inc @@ -5,7 +5,7 @@ * Functions and interfaces for cache handling. */ -use Drupal\Core\Cache\Cache; +use Drupal\Core\Cache; /** * Instantiates and statically caches the correct class for a cache bin. @@ -23,6 +23,9 @@ * @return \Drupal\Core\Cache\CacheBackendInterface * The cache object associated with the specified bin. * + * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0 by + * https://drupal.org/node/2184985. Use \Drupal::caches(). + * * @see \Drupal\Core\Cache\CacheBackendInterface */ function cache($bin = 'cache') { @@ -42,7 +45,8 @@ function cache($bin = 'cache') { * @param array $tags * The list of tags to invalidate cache items for. * - * @deprecated 8.x + * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0 by + * https://drupal.org/node/2184985. * Use \Drupal\Core\Cache\Cache::invalidateTags(). */ function cache_invalidate_tags(array $tags) {