You are here

protected function InPlaceUpdate::cacheRebuild in Automatic Updates 8

Clear cache on successful update.

1 call to InPlaceUpdate::cacheRebuild()
InPlaceUpdate::update in src/Services/InPlaceUpdate.php
Update a project to the next release.

File

src/Services/InPlaceUpdate.php, line 628

Class

InPlaceUpdate
Class to apply in-place updates.

Namespace

Drupal\automatic_updates\Services

Code

protected function cacheRebuild() {
  if (function_exists('opcache_reset')) {
    opcache_reset();
  }
  automatic_updates_console_command('cache:rebuild');
}