Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

"Refresh" cache when the Template Image class changes. #69

Closed
Luddinus opened this issue Aug 10, 2016 · 1 comment
Closed

"Refresh" cache when the Template Image class changes. #69

Luddinus opened this issue Aug 10, 2016 · 1 comment

Comments

@Luddinus
Copy link

Hi,

I have this in my imagecache.php config

'templates' => [
        'small' => 'Intervention\Image\Templates\Small',
        'medium' => 'Intervention\Image\Templates\Medium',
        'large' => 'Intervention\Image\Templates\Large',

        'avatar' => 'App\ImageCaches\Avatar'
    ],
class Avatar implements FilterInterface
{
    public function applyFilter(Image $image)
    {
        return $image->fit(256, 256);
    }
}

So the first time works well, BUT if I change the "fit" parameters, it will load the previous ones.

How can I "refresh" the cache and get the new thumbnails?

Thx.

@olivervogel
Copy link
Member

You have to clear the cache. For example: php artisan cache:clear

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

No branches or pull requests

2 participants