accessing third-party websites repeatedly efficiently
I have to collec开发者_开发百科t the twitter statuses of 100,000+ users daily. Like access twitter for each user. I was wondering what the most efficient way of doing using PHP and mysql (I'm using the Yii PHP framework)? Thanks!
Have a look at the Yii cache functions: http://www.yiiframework.com/doc/guide/1.1/en/caching.data there are many approaches, disk, mysql, redis, etc., the best one for you depends on your set-up, but certainly some kind of cache strategy is advised when fetching 3rd-party data.
精彩评论