-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
[Proposal] Caching/saving timeline #2
Comments
Hi. |
Something like this:
|
But if there are some tweets posted the cache won't return these... |
See the documentation part of Cache in laravel. You can flush them, or keep the cache alive for some minutes. On Mon, Jul 22, 2013 at 6:10 PM, Jonathan Thuau notifications@github.com
|
I will think of this for a next release. For the moment you can do it in your controller. if (!Cache::has('twitter')){
$timeline = Twitter::getUserTimeline(array('screen_name' => 'jas_pur', 'count' => 3));
Cache::add('twitter', $timeline, 180);
}
return Cache::get('twitter'); |
Hi, it takes a while now every time, because it has to check the Twitter server
The text was updated successfully, but these errors were encountered: