public function deleteRemoteImageCaches()
    {
        $path = Craft::$app->getPath()->getRuntimePath().'/imager/';

        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 deleteRemoteImageCaches()
    {
        $path = Craft::$app->getPath()->getRuntimePath().'/imager/';

        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 deleteRemoteImageCaches ( ) { $ path = Craft :: $ app -> getPath ( ) -> getRuntimePath ( ) . '/imager/' ; 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 remote image caches
Clear all remote image caches