简体   繁体   English

如何加快RSS Feed的加载时间?

[英]How to Speed Up Load Time of RSS Feed?

I'm using feedroll.com for my site to receive 4 different feeds. 我正在使用feedroll.com访问我的网站,以接收4种不同的供稿。 After testing the page speed, it's obvious the RSS is slowing down the site by far and taking the longest to load. 在测试了页面速度之后,很明显,RSS大大降低了网站速度,并花费了最长的时间。 Any general tips on how to somehow minimize the page load time for RSS feeds? 关于如何最小化RSS提要的页面加载时间的任何一般性提示? Thanks. 谢谢。

  • side note: I'm using the feeds because I have one site where parts of it are JSP and other parts PHP (Wordpress). 旁注:我使用提要是因为我有一个站点,其中的部分内容是JSP,而其他部分则是PHP(Wordpress)。

One simple approach (if the content of the feeds do not change very much over time): Use a cron job to download the feeds periodically to your web server. 一种简单的方法(如果提要的内容不会随时间变化很大):使用cron作业将提要定期下载到Web服务器。 Take the downloaded feeds from your web server's file system when you serve documents to the client. 在向客户端提供文档时,请从Web服务器的文件系统中获取下载的提要。

For example: If you use the Feedcombiner you can periodically download the feed to your server and make a link to this downloaded RSS Feed on your server's file system. 例如:如果您使用Feedcombiner ,则可以定期将提要下载到服务器上,并在服务器的文件系统上链接到此下载的RSS提要。

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

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