Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve returning /cache even after :remove #1582

Open
tacman opened this issue May 6, 2024 · 1 comment
Open

Resolve returning /cache even after :remove #1582

tacman opened this issue May 6, 2024 · 1 comment

Comments

@tacman
Copy link
Contributor

tacman commented May 6, 2024

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
Copy link
Member

dbu commented May 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants