public function deleteFromCache(EventInterface $event) {
        $request = $event->getRequest();
        $cacheDir = $this->getCacheDir($request->getUser(), $request->getImageIdentifier());

        if (is_dir($cacheDir)) {
            $this->rmdir($cacheDir);
        }
    }
public function deleteFromCache(EventInterface $event) {
        $request = $event->getRequest();
        $cacheDir = $this->getCacheDir($request->getUser(), $request->getImageIdentifier());

        if (is_dir($cacheDir)) {
            $this->rmdir($cacheDir);
        }
    }
public function deleteFromCache ( EventInterface $ event ) { $ request = $ event -> getRequest ( ) ; $ cacheDir = $ this -> getCacheDir ( $ request -> getUser ( ) , $ request -> getImageIdentifier ( ) ) ; if ( is_dir ( $ cacheDir ) ) { $ this -> rmdir ( $ cacheDir ) ; } }
Delete cached images from the cache

@param EventInterface $event The current event
Delete cached images from the cache