Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($results->tweet_date <= strtotime('-1 hours')) {
- //do api call
- } else {
- //call tweets from database
- }
- if($results->tweet_date <= time() - 3600) {
- //do api call
- } else {
- //call tweets from database
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement