WordPress 静态 RSS 源以减少负载
我目前运行 wordpress 只是为了使用 RSS 功能(稍微修改的 XML)创建/管理 XML 数据源。
我运行 WP Super Cache 是为了降低服务器负载(我每天收到超过 25,000 个提要请求)。这工作得很好,但我的服务器已经无法满足 CPU 上的纯 http 请求了。
我现在需要考虑扩展。在 WordPress 中创建每个新帖子时,是否可以实际创建一个新的静态 RSS 提要,而不是使用缓存版本,而不是采用缩放的 Memcached 路线?我不完全确定 WP Super Cache 缓存 RSS 提要的位置,因为在其他缓存文件所在的 wp-content 中没有它的物理文件副本,这让我想知道它到底是如何“缓存”的。
我的想法是让一个负载均衡器指向两个以上的服务器,只为这个静态 XML/RSS 文件提供服务……这是否太简单了?
仅供参考,我正在运行一个 mediatemple (dv) 服务器,它是 Intel(R) Xeon(R)CPU L5520 @ 2.27GHz,1GB RAM。我的CPU已经失控了,RAM绝对没问题。我想我可能会考虑使用具有更好 CPU 的专用服务器作为替代方案。
I'm currently running wordpress simply to create/manage an XML feed of data using the RSS functionality (slightly modified XML).
I'm running WP Super Cache in order to keep the server load down (I'm getting upwards of 25,000 requests per day for the feed). This works well, but I'm outgrowing the server from pure http requests on the CPU.
I now need to consider scaling. Rather than going the scaled memcached route, would it be possible to instead actually create a new static RSS feed when each new Post in wordpress is created, rather than use a cached version? I'm not entirely sure where the RSS feed is cached with WP Super Cache as there is no physical file copy of it in wp-content where other cached files are, which makes me wonder how "cached" it really is.
My thinking is having a load balancer pointing to two+ servers simply serving this one static XML/RSS file... is that too simplistic?
FYI I am running a mediatemple (dv) server which is Intel(R) Xeon(R)CPU L5520 @ 2.27GHz, 1GB RAM. It's my CPU that is growing out of control, RAM is absolutely fine. I guess I could potentially look at a dedicated server with better CPU as an alternative.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它没有缓存在文件系统上,也没有缓存在数据库中。至少,我似乎找不到它,这使得提要实际上不太可能被缓存。看来 这个插件 正是你想要的。我刚刚在我的 Wordpress(版本 3.0.4)中测试了该插件,它的工作方式非常出色。祝你好运!
It's not cached on the file-system, and it's not cached in the database. At least, I can't seem to find it, which makes it unlikely that the feeds are actually cached. It seems that this plugin does exactly what you want though. I've just tested the plugin in my Wordpress (version 3.0.4), and it works like a charm. Good luck!
您可以使用 Ant exec Task 启动 7z 的命令行版本,这应该对你有用。
You can use the Ant exec Task to launch the command-line version of 7z, this should work for you.