You are here

protected static function InPlaceUpdate::cacheClear in Automatic Updates 7

Clear cache on successful update.

1 call to InPlaceUpdate::cacheClear()
InPlaceUpdate::update in ./InPlaceUpdate.php

File

./InPlaceUpdate.php, line 519

Class

InPlaceUpdate
Class to apply in-place updates.

Code

protected static function cacheClear() {
  if (function_exists('opcache_reset')) {
    opcache_reset();
  }
  automatic_updates_exec_command('cache:clear');
}