[wp-hackers] Accessing custom post types and taxonomies
anca at anca.tv
Tue Jan 25 23:57:11 UTC 2011
Hello Mike and Bill,
I had a similar issue (aggregating data from multiple sites on a network
and displaying them on a homepage) and the solution we initially tried was
RSS, but this created some really bad performance issues. When we
displayed a page with about 7 widgets displaying data from Feeds
(within the different departments) it would take over 1 minute to render
the front page.
Performance tuning determined that 58 seconds were being taken up
getting the RSS feed data (which was then cached in a Transient) but
I didn't know how to remedy this problem.
I wound up writing a custom widget that queried the database directly
to retrieve the data from the sub-sites.
I'd love to make it work with RSS, because that provides a huge amount
more flexibility, but I'm not sure how to get past the performance issues.
On Jan 25, 2011, at 3:42 PM, wp-hackers-request at lists.automattic.com wrote:
> Message: 5
> Date: Tue, 25 Jan 2011 21:54:28 +0000
> From: Mike Little <wordpress at zed1.com>
> Why not include the content from the faculty site as an RSS feed into the
> department site. Do it using the built in WordPress RSS engine cache it
> (with a timeout) and render it appropriately,
> If there is a query on the faculty site that will retrieve all the staff in
> a specific department, added /feed to that URL or a feed=rss2 query var will
> render that content as RSS which can be consumed and displayed by any of the
> other sites. No trickery involved -- standard WordPress functionality.
> And if you wanted to display them in a sidebar there is already a widget for
> that. If you want to turn that into a short code handler take a look at the
> RSS feed widget code.
> Mike Little
More information about the wp-hackers