Should I uniform different API calls to a single format before caching?

Posted by bluedaniel on Stack Overflow See other posts from Stack Overflow or by bluedaniel
Published on 2011-01-15T20:41:48Z Indexed on 2011/01/15 20:53 UTC
Read the original article Hit count: 204

Filed under:
|
|
|

The problem is that I am recreating the social media widget/icons on http://about.me/bluedaniel (thats me).

Anyhow there can be up to 6 or 7 different API calls on the page and obviously I am caching them, at the moment with Memcached.

The question is, as they arrive in various formats and sizes (fb-json, linkedin-xml, wordpress-rss etc), should I universally format/convert them before storing it in the cache.

At present I have recreated the html widget and then stored that, but I worry about saving huge blocks of html in the cache as it doesn't seem that smart.

© Stack Overflow or respective owner

Related posts about php

Related posts about api