LiipImagineBundle icon indicating copy to clipboard operation
LiipImagineBundle copied to clipboard

Resolve returning /cache even after :remove

Open tacman opened this issue 1 year ago • 1 comments

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  

tacman avatar May 06 '24 23:05 tacman

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

dbu avatar May 07 '24 09:05 dbu