New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Prevent Image Cache from being cleared

Andreas August 30, 2021 by Andreas

My setup is running with Envoyer to deploy to production. When doing so, one of the deployment hooks calls php artisan cache:clear. While this is necessary for most parts of the app, I want it to avoid the image cache.

Basically, all transformed / processed images need to be re-processed, although there is no need for this, since the storage page is not changing.

This slows the site down a lot the first time after deploying. Is there any way to ignore the image cache when clearing the Laravel cache with the above method?

>>>>>>> Unanswered <<<<<<<
5 Replies