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');
        }
    }
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');
        }
    }
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' ) ; } }
Clear cached images
Clear cached images