简体   繁体   English

如何加入两个或多个Wordpress RSS提要?

[英]How do I join two or more Wordpress RSS Feeds?

I have two Wordpress blogs installed separately and I want to join its RSS Feeds into one. 我有两个分别安装的Wordpress博客,我想将其RSS Feed合并为一个。

I've found this way: http://theos.in/technology/howto-combine-two-wordpress-rss-feed/ and it works but it's too slow to use. 我发现了这种方式: http : //theos.in/technology/howto-combine-two-wordpress-rss-feed/ ,它可以工作,但是使用起来太慢了。

There is a simple and fast way to do it? 有一个简单快捷的方法吗?

I've used Yahoo Pipes as a way to do this. 我已经使用Yahoo Pipes来做到这一点。 In short, you can mashup several feeds into a single one. 简而言之,您可以将多个提要混搭为一个提要。 They have a short tutorial and it's pretty easy to use. 他们有一个简短的教程 ,很容易使用。

I've found a good solution! 我找到了一个很好的解决方案!

The script was running slow because I wasn't using cache correctly. 脚本运行缓慢,因为我没有正确使用缓存。 You can set a cache timeout to use the generated Feed RSS in Feed Creator. 您可以设置缓存超时,以在Feed Creator中使用生成的Feed RSS。 You just have to set the same parameters for saveFeed... 您只需要为saveFeed设置相同的参数...

$rss->saveFeed("RSS2.0", $TMP_ROOT."/rsscache/feed.xml");

... on useCached ...关于useCached

$rss->useCached("RSS2.0", $TMP_ROOT."/rsscache/feed.xml", 3600); //1 hour reload

Then you call useCached before start creating a new version of that RSS Feed. 然后,在开始创建该RSS Feed的新版本之前,请调用useCached。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM