本文转载:WordPress啦
针对有的用户抱怨WordPress运行效率低,这里我就给大家介绍下优化WP博客运行的一些简单方法:
1. 理智地选择主机服务
不要被低价主机的宣传所诱惑,要记住没有白捡的便宜。随着网站越来越受欢迎,你可能得考虑升级为独立服务器甚至是云方案,才能保证更好的运行时间(特别党是你的文章被大网站推荐时)并提供优质的服务。
2. 利用插件与垃圾邮件抗争
Akismet 成为WP中最受欢迎的插件不是偶然的(并不仅仅因为安装时就自带)。因为它确实阻止了很多垃圾邮件。还有其他什么保护措施呢?你可以再安装Simple Trackback Validation作为Akismet的补充。垃圾邮件越来越先进了,防垃圾邮件的工具也要更新。任何博客都少不了反垃圾邮件插件。
3. 备份
记住不能光靠主机服务商为你的博客备份。任何网站都可能会遭遇失误,包括:丢失文件、数据库损坏、插件出问题或是软件更新出错等等。安装数据库备份插件才能让自己放心。(小帖士: 创建一个专门的Gmail账户,每天发送备份文件到邮箱)。一旦出现什么问题,你可以重新恢复你上一次的配置并且保持良好的运行。
4. 留心更新
如果你使用的是WordPress (2.6及以上)版本,可能会有一大堆的软件更新提示。 如果你安装了很多插件或者自定义主题,在按任何更新按钮之前都要三思而后行。(按照第三条,首先就是要备份。),同时要记住删除任何“自动更新”类型的插件,很多管理员因为这些插件的不可兼容性而无法操作后台。学习下该如何管理服务器以及更新之前的测试工作。
5.为什么我的博客这么慢?
博客打开像蜗牛一般吗?这可能有多种原因,常见的有以下原因:
- 你的虚拟主机方案 (具体见1)
- 运行了太多有潜在冲突的插件(可能的话尽量不用) 。
- 使用太多的小工具(代码编写的可能比较差)。
- 过于依赖外部服务(比如,很多文件都是来自Flickr、Twitter、YouTube, 意 味着你要等待这些文件从他们的服务器上运行)。
- 使用免费、现成的主题(可能他们的代码编写比较差,甚至里面有流氓代码)。
工具箱
- WordPress – http://www.wordpress.org
- Akismet – http://wordpress.org/extend/plugins/akismet
- Simple Trackback Validation – http://wordpress.org/extend/plugins/simple-trackback-validation/
- Bad Behavior – http://wordpress.org/extend/plugins/bad-behavior/
- WordPress Database Backup – http://wordpress.org/extend/plugins/wp-db-backup/
附原文:
5 Ways to Keep WordPress Running Smoothly
Here are some easy steps you can take to ensure that your WordPress blog is running optimally.
1. Choose Your Host Wisely
While it’s tempting to go for a shared plan that’s under $5/month, you have to remember you get what you pay for. As your site gets popular, you may need to consider upgrading to a virtual private server, a dedicated server, or even a cloud solution. These plans can often guarantee better uptimes (especially when you land on the home page of Digg) and offer superior performance overall.
2. Fight Spam with Plugins
It’s no accident that Akismet is WordPress’s most popular plugin (and not just because it’s included with your install). It really stops most spam in its tracks. Want even more protection? You can supplement Akismet by installing Simple Trackback Validation (to thwart pesky trackback spam) and Bad Behavior. As spammers get more sophisticated, so do these tools. No blog should be launched without them.
3. Back It Up
Remember you can’t rely on your host alone to get your blog’s data back. As with any website, there are many, many points of failure, including lost files, corrupted databases, plugin breakages, and software upgrade errors. Install the WordPress Database Backup plugin for peace of mind. (Bonus Tip: create a special Gmail account and have your backup files sent there daily). When things go wrong, you can restore to your last good known configuration and be back running quickly.
4. Watch Those Upgrades
If you are running a newer version of WordPress (2.6 and above), you can be bombarded with prompts to update your out-of-date software. If you have a lot of plugins or a customized theme, you should think twice about blindly pressing any update buttons (see #3 and do a backup first!). Also, please delete any “automatic upgrade” plugins, which have been known to lock many an admin out of their dashboard due to incompatibilities. Learn how to create development server and test out your upgrades before applying them to your production site.
5. Why is My Blog Slow?
There can be many reasons why your blog is behaving up like a snail. Common causes can be traced to:
Your host or your plan (see #1)
Running too many potentially conflicting plugins (pare them down when possible)
Using too many widgets (which may be poorly coded)
Relying on external services (when you pull in files from Flickr, Twitter, or YouTube, for example, it means you have to wait on them to serve up images, tweets, and videos from their sites.)
Using a free, off-the-shelf theme (they can be programmed poorly or even have rogue code within them)
Toolbox
WordPress – http://www.wordpress.org
Akismet – http://wordpress.org/extend/plugins/akismet
Simple Trackback Validation – http://wordpress.org/extend/plugins/simple-trackback-validation/
Bad Behavior – http://wordpress.org/extend/plugins/bad-behavior/
WordPress Database Backup – http://wordpress.org/extend/plugins/wp-db-backup/
Follow these 5 tips and you’ll find that your WordPress blog is more stable and easier to manage.
Tags: WordPress