original_string: public function afterModelSave()
      {
          Cache::forget($this->getCacheKey());
  
          try {
              Artisan::call('queue:restart');
          } catch (Exception $e) {
              Log::warning($e->getMessage());
          }
      }
code: public function afterModelSave()
      {
          Cache::forget($this->getCacheKey());
  
          try {
              Artisan::call('queue:restart');
          } catch (Exception $e) {
              Log::warning($e->getMessage());
          }
      }
code_tokens: public function afterModelSave ( ) { Cache :: forget ( $ this -> getCacheKey ( ) ) ; try { Artisan :: call ( 'queue:restart' ) ; } catch ( Exception $ e ) { Log :: warning ( $ e -> getMessage ( ) ) ; } }
docstring: After the model is saved, clear the cached query entry
  and restart queue workers so they have the latest settings
  @return void
docstring_tokens: After the model is saved clear the cached query entry and restart queue workers so they have the latest settings