stats: better cache requirements checking
* check types
* check timeline has at least one post
* check user has at least one friend
Merge pull request #3 from naholyr/fix-invalid-cache-detection

stats: better cache requirements checking