imagecache
imagecache copied to clipboard
Add prefix
Hello! I use Laravel 5.4 and I want the author to add a very important detail.
In the /vendor/intervention/imagecache/src/Intervention/Image/ImageCache.php file, please add the ability to insert a prefix from the configuration file /config/cache. That would be like this:
public function checksum ()
{
$ properties = serialize ($ this-> properties);
$ calls = serialize ($ this-> getSanitizedCalls ());
return 'imagecache:'. md5 ($ properties. $ calls);
}
For the place 'imagecache:' was taken from the configuration file. This is very important, because I integrated the caching of images with Redis and on the key I delete these caches. So far I have independently made a change to this file, which is a very bad practice!
I really want you to fix one line and notify me!