All uses of these functions in core should be replaced by calls to the methods on the relevant objects or methods of \Drupal and the functions themselves removed.

Postponed on #2177461: Refactor page caching into a service, which is a much more complicated and important patch covering similar code.

Comments

ianthomas_uk’s picture

Issue tags: +Novice
znerol’s picture

The conversion of cache() to Drupal::cache() does not have too much overlap with #2177461: Refactor page caching into a service. It is not really necessary to postpone this.

Also note that in OO code, Drupal::cache() shouldn't be used either. Better inject the appropriate cache backend object as a service.

wim leers’s picture

Status: Postponed » Closed (duplicate)

cache_invalidate_tags() has long since been removed, as has cache(). We now only have \Drupal::cache().

Hence closing this one.