Tech

Refresh Sylius Image Cache | bitExpert

After transferring images from one Sylius instance to another, I need to refresh the image cache so that Sylius can correctly display the images on the frontend. How can I achieve this?

Following some research and testing, I discovered the necessary commands to complete the task.

To generate the image cache for each file in the public/media/image directoryyou can use the Symfony Console command liip:imagine:cache:resolvewhich takes a file as an argument and updates its corresponding cache:

cd public/media
find image -type f -print0 | xargs -0 -I {} php ../../bin/console liip:imagine:cache:resolve {}

Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Close

Adblock Detected

kindly turn off ad blocker to browse freely