public function deleteImageTransformCaches()
    {
        $path = Plugin::$plugin->getSettings()->imagerSystemPath;

        try {
            FileHelper::clearDirectory(FileHelper::normalizePath($path));
        } catch (ErrorException $e) {
            Craft::error('Could not clear directory "'.$path.'" ('.$e->getMessage().')', __METHOD__);
        } catch (InvalidParamException $e) {
            Craft::error('Could not clear directory "'.$path.'" ('.$e->getMessage().')', __METHOD__);
        }
    }
public function deleteImageTransformCaches()
    {
        $path = Plugin::$plugin->getSettings()->imagerSystemPath;

        try {
            FileHelper::clearDirectory(FileHelper::normalizePath($path));
        } catch (ErrorException $e) {
            Craft::error('Could not clear directory "'.$path.'" ('.$e->getMessage().')', __METHOD__);
        } catch (InvalidParamException $e) {
            Craft::error('Could not clear directory "'.$path.'" ('.$e->getMessage().')', __METHOD__);
        }
    }
public function deleteImageTransformCaches ( ) { $ path = Plugin :: $ plugin -> getSettings ( ) -> imagerSystemPath ; try { FileHelper :: clearDirectory ( FileHelper :: normalizePath ( $ path ) ) ; } catch ( ErrorException $ e ) { Craft :: error ( 'Could not clear directory "' . $ path . '" (' . $ e -> getMessage ( ) . ')' , __METHOD__ ) ; } catch ( InvalidParamException $ e ) { Craft :: error ( 'Could not clear directory "' . $ path . '" (' . $ e -> getMessage ( ) . ')' , __METHOD__ ) ; } }
Clear all image transforms caches
Clear all image transforms caches