Resized images with deploy plugin

Hello everyone,

i currently build a website local and use deploy plugin to deploy my site for testing purpose to a staging server. I use the image resizer to build a picture tag and to resize images.

Now when I change something in the markup that also change the resized image it doesn’t change on staging server. Locally there is no problem I just delete the resize images and new ones are generated.

Is there a command or a way via the deploy plugin to force new generation of image resizing?

Thank you

Hi @MateThemes

Yes, the command to delete the resizer image cache is

php artisan october:util purge resizer

Using the deploy plugin it can be called using the Tinker emulator:

Artisan::call('october:util purge resizer');
echo Artisan::output();
1 Like