Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching a view #17

Open
cemarta7 opened this issue Jul 24, 2015 · 3 comments
Open

Caching a view #17

cemarta7 opened this issue Jul 24, 2015 · 3 comments

Comments

@cemarta7
Copy link

How can I cache a whole view?

@barryvdh
Copy link
Owner

Even better, you cache the entire response ;)

@cemarta7
Copy link
Author

I try
return Response::view('pages.home',compact('var'))->setTtl(60);
then when I refresh I am getting a blank page.

Any idea? could it be my settings?

'options' => array(
'debug' => true,
'default_ttl' => 60000,
'private_headers' => array('Authorization', 'Cookie'),
'allow_reload' => false,
'allow_revalidate' => false,
'stale_while_revalidate' => 2,
'stale_if_error' => 60,
),

@ctf0
Copy link

ctf0 commented Aug 25, 2016

any updates on this ?

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

No branches or pull requests

3 participants