Set the correct __construct parameter list.
Add max_entries config option and limit cache to that number of tweets.
Fix getPath logic.
Check resource before fclose.
Add Log class for better logging.