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

Default Cache Lifetime #91

Open
Mr-Anonymous opened this issue Apr 6, 2018 · 1 comment
Open

Default Cache Lifetime #91

Mr-Anonymous opened this issue Apr 6, 2018 · 1 comment

Comments

@Mr-Anonymous
Copy link

Q1) If I use the imagecache, what is the default cache lifetime if no lifetime is mentioned as second parameter like the below code:

$img = Image::cache(function($image) {
   return $image->make('public/foo.jpg')->resize(300, 200)->greyscale();
});

Q2) The documentation said Pass a boolean true as optional third parameter to return an Intervention Image object instead of a image stream.. What does that mean? If I set true as the third parameter, I don't see any changes when viewing the images from my browser, so I don't understand what does it mean by "to return an Intervention Image object instead of a image stream".

Can someone clarify these for me please?

@guilhermeaiolfi
Copy link

Q1) 5 minutes
Q2) if true, it returns a instance of a image class that you can call methods and such. If false you get the stream with the image content directly.

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