liip / LiipImagineBundle

Symfony Bundle to assist in image manipulation using the imagine library
http://liip.ch
MIT License
1.66k stars 377 forks source link

Resolve returning /cache even after :remove #1582

Open tacman opened 3 months ago

tacman commented 3 months ago

Basic command line program to generate thumbnails. First

  bin/console liip:imagine:cache:remove
// in the CLI
$url = $cacheManager->resolve($asset->getFilename(), $filter);
assert(!str_contains($url, '/cache/' . $filter), $url);

If I've just cleared the cache, shouldn't this come back with a /resolve, and not /cache

bin/console app:thumb -vv https://127.0.0.1:8000
23:19:37 INFO      [app] juan/jc-rosas/jc-rosas.png

In AppThumbnailsCommand.php line 49:

  [AssertionError (1)]                                          
  http://localhost/media/cache/tiny/juan/jc-rosas/jc-rosas.png  
dbu commented 3 months ago

afaik for remove you need to specify which variant of which file you want to delete