original_string: public static function reset_caches($phpunitreset = false) {
          if ($phpunitreset) {
              static::$singletoninstance = null;
          } else {
              if (static::$singletoninstance) {
                  static::$singletoninstance->pluginsinfo = null;
                  static::$singletoninstance->subpluginsinfo = null;
                  static::$singletoninstance->remotepluginsinfoatleast = null;
                  static::$singletoninstance->remotepluginsinfoexact = null;
                  static::$singletoninstance->installedplugins = null;
                  static::$singletoninstance->enabledplugins = null;
                  static::$singletoninstance->presentplugins = null;
                  static::$singletoninstance->plugintypes = null;
                  static::$singletoninstance->codemanager = null;
                  static::$singletoninstance->updateapiclient = null;
              }
          }
          $cache = cache::make('core', 'plugin_manager');
          $cache->purge();
      }
code: public static function reset_caches($phpunitreset = false) {
          if ($phpunitreset) {
              static::$singletoninstance = null;
          } else {
              if (static::$singletoninstance) {
                  static::$singletoninstance->pluginsinfo = null;
                  static::$singletoninstance->subpluginsinfo = null;
                  static::$singletoninstance->remotepluginsinfoatleast = null;
                  static::$singletoninstance->remotepluginsinfoexact = null;
                  static::$singletoninstance->installedplugins = null;
                  static::$singletoninstance->enabledplugins = null;
                  static::$singletoninstance->presentplugins = null;
                  static::$singletoninstance->plugintypes = null;
                  static::$singletoninstance->codemanager = null;
                  static::$singletoninstance->updateapiclient = null;
              }
          }
          $cache = cache::make('core', 'plugin_manager');
          $cache->purge();
      }
code_tokens: public static function reset_caches ( $ phpunitreset = false ) { if ( $ phpunitreset ) { static :: $ singletoninstance = null ; } else { if ( static :: $ singletoninstance ) { static :: $ singletoninstance -> pluginsinfo = null ; static :: $ singletoninstance -> subpluginsinfo = null ; static :: $ singletoninstance -> remotepluginsinfoatleast = null ; static :: $ singletoninstance -> remotepluginsinfoexact = null ; static :: $ singletoninstance -> installedplugins = null ; static :: $ singletoninstance -> enabledplugins = null ; static :: $ singletoninstance -> presentplugins = null ; static :: $ singletoninstance -> plugintypes = null ; static :: $ singletoninstance -> codemanager = null ; static :: $ singletoninstance -> updateapiclient = null ; } } $ cache = cache :: make ( 'core' , 'plugin_manager' ) ; $ cache -> purge ( ) ; }
docstring: Reset all caches.
  @param bool $phpunitreset
docstring_tokens: Reset all caches .