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

Add prefix #97

Open
vinogradovnikita opened this issue Oct 23, 2018 · 0 comments
Open

Add prefix #97

vinogradovnikita opened this issue Oct 23, 2018 · 0 comments

Comments

@vinogradovnikita
Copy link

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!

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

1 participant