This morning I'm going to get right cracking on RSS caching scheme. Just put a timestamp on feed objects, figure out how to parse it into a datetime, and see if (interval) has passed. So that should be reasonably quick. The second, slightly more difficult part is develop a json-outputting script that reads a feed based on a url parameter. It might be able to share some code with add_feed, we'll have to see. But the workflow for the control will be:
Get passed in a list of feeds (no items).
Construct the panes, along with a front-displaying pane with some informative text about where to add rss feeds.
The other feeds will be lazy-loading but will NOT use AccordionPane's url feature - on show they will make an XHR request, grab their feed, construct their DOMs (because there's fancy javascript and there's no reason to put more load on the server) from JSON, and be done with it. The cache checks will be done server side, and feeds older than time X (specified in one place, is_feed_expired) will be re-done. A loading page will be shown while the XHR is in progress.
No comments:
Post a Comment