加速WordPress — 1 Blog Cacher插件
一款不错的插件,1 Blog Cacher。插件参考WP-Cache跟HTML Cache Creator而制作,用于increase the response speed and minimize the server load,刚刚安装测试成功。Features
- Wordpress 1.5+ compatible (tested in 1.5, 2.0, 2.1 and 2.2).
- Quick and easy installation/configuration.
- Portable: edit the file for your convenience and use it anywhere.
- Cached files are stored in HTML files, and organized in directories emulating the urls, so it's easy displaying the content of the files and organize them (for instance deleting the cache for a given entry, for all categories, for all searches, for all posts from a given date, etc.)
- If «safe_mode» is enabled, the plugin will still work, creating all the files in the cache directory.
- Option to remove all cache files (or just the expired ones) from the WordPress panel.
- Expiration time for cached files.
- Rejected and accepted strings in order to control exactly the urls to cache.
- Rejected User Agents in order to avoid over-caching from search engines.
- Cached files (including front page cache) are updated when posts and comments are published/edited/deleted.
- Option to include an «Expires» header in order to enable browser cache (even fastest response speed and less page requests.
- Only GET requests are cached.
- Browser super-reload (Ctrl+F5) avoids cached urls.
- Compatible with Gzip compression.
插件安装:
1、在WordPress根目录下建立一个名为wp-cache的文件夹。此文件夹用来存放Cache文件。
2、把1blogcacher2.0.php上传到/wp-content/plugins/目录下边。将advanced-cache.php上传到/wp-content/目录下边。
3、编辑wp-config.php,在里边加入 define(’WP_CACHE’, true); ,然后在后台启用插件即可。
「1-Blog-Cacher」有个小地方不错,如果你正在修改,改完之后可以不用删除所有CACHE,直接在其中一个网页按〔CTRL〕+〔F5〕,就可以抓取最新更新状态。适合一边改,一边看更新后的结果。
The Full Version: 加速WordPress — 1 Blog Cacher插件
define('WP_CACHE', true);加在wp-config.php里面代码的那个位置? 加在开头部分好了: .... define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('WP_CACHE', true); ....Tags: plugin