original_string: protected function clearCacheImageStyle()
      {
          $this->controlToken('clear');
          $style_id = $this->getQuery('clear');
  
          if (!empty($style_id)) {
  
              if ($this->image_style->clearCache($style_id)) {
                  $this->redirect('', $this->text('Cache has been deleted'), 'success');
              }
  
              $this->redirect('', $this->text('Cache has not been deleted'), 'warning');
          }
      }
code: protected function clearCacheImageStyle()
      {
          $this->controlToken('clear');
          $style_id = $this->getQuery('clear');
  
          if (!empty($style_id)) {
  
              if ($this->image_style->clearCache($style_id)) {
                  $this->redirect('', $this->text('Cache has been deleted'), 'success');
              }
  
              $this->redirect('', $this->text('Cache has not been deleted'), 'warning');
          }
      }
code_tokens: protected function clearCacheImageStyle ( ) { $ this -> controlToken ( 'clear' ) ; $ style_id = $ this -> getQuery ( 'clear' ) ; if ( ! empty ( $ style_id ) ) { if ( $ this -> image_style -> clearCache ( $ style_id ) ) { $ this -> redirect ( '' , $ this -> text ( 'Cache has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Cache has not been deleted' ) , 'warning' ) ; } }
docstring: Clear cached images
docstring_tokens: Clear cached images