当前位置:网站首页>WordPress数据库缓存插件:DB Cache Reloaded
WordPress数据库缓存插件:DB Cache Reloaded
2022-06-11 11:07:00 【星哥玩云】
DB Cache Reloaded缓存插件,与Wp-Cache和Wp Super Cache静态缓存插件不同,后两者是将PHP页面生成真正的 HTML 文件,跳过 PHP 脚本解析,从而提高 WordPress 博客的速度。貌似在博客站点访问量不是很高的情况下这个静态缓存,并没人们鼓吹的那么明显,除非你的博客日访问量以万计数,才可能真正体现出效果。
而DB Cache Reloaded是针对数据库的缓存插件,可减少数据库查询,提高访问速度,是另一款插件DB Cache的升级版,由于原插件作者已停止更新,不能眼看这么好的东西就这么荒废了,所以另有人捡起来继续完善该插件。
插件使用简单,启用后进入插件设置页面,选择“Enable”并保存就可以,其它不用动。插件会自动在wp-content目录创建tmp缓存文件夹和db-config.ini及db.php三个文件,当你删除插件时也会随之消失。
使用热点新闻主题的童鞋,可能发现面页脚有类似 “98次查询”的字样,这就是网页加载时查询数据库的次数,是我在调试主题时加上的,一直未删除。经实测,我首页未启用DB Cache Reloaded前查询次数大概是93次,而启用后降为63次,效果还是很明显,不过是否真会提高页面加载速度,还是自己慢慢体会吧,最起码瞧那个查询数字明显减小,也是个心里安慰。
最后,说一下增加数据库查询的罪魁祸首之一:WP3.0的菜单功能,每增加一个菜单项就会增加一次查询,有童鞋的分类较多,恨不得都挤到导航菜单上,什么二级下拉菜单三级菜单甚至四级下拉菜单都用上了,其实完全没必要,将自己最拿手的、最有用的放上去就行了,尽量减少无谓的查询。还有就是侧边那个站点统计,貌似很多人喜欢放这个,开启后也至少增加6、7次查询,是个华而不实的功能。
开启DB Cache Reloaded缓存插件后,可忽略不计了。
边栏推荐
- 想做钢铁侠?听说很多大佬都是用它入门的
- Jerry's acquisition of ble OTA dual backup upgrade (can only be used for chips above 4mbits) [article]
- msf cs openssl流量加密
- Planck plan 2022 Huawei software elite challenge is coming!
- SurroundDepth:自监督多摄像头环视深度估计
- SQL query statement optimization
- 沒有財富就不能自由嗎?
- [issue 30] shopee golang development experience
- UCI-HAR数据集的处理
- Introduction to database system - Chapter 2 - relational database (2.1~2.3) (important knowledge points)
猜你喜欢

Introduction to database system -- Chapter 2 -- relational database (2.4 relational algebra)

距离度量 —— 欧式距离(Euclidean Distance)

Characteristics and classification of creation mode (single case, factory)

Xiao P weekly Vol.08

Cube 技术解读 | Cube 渲染设计的前世今生

Inventory of the 9 most famous work task management software at home and abroad

如何养成一个好习惯?靠毅力?靠决心?都不是!

命令模式--进攻,秘密武器

Introduction to thread pool: ThreadPoolExecutor

JS prototype. The find () method has no effect on the object array. It is urgent...
随机推荐
17.5 互斥量的概念、用法、死锁演示与解决详解
Jerry's acquisition of ble to check the causes of abnormal conditions such as abnormal code reset [chapter]
MySQL optimized learning diary 10 - locking mechanism
Store management skills: how to manage chain stores efficiently?
小 P 周刊 Vol.08
使用Labelimg制作VOC数据集或yolo数据集的入门方法
数字藏品系统源码搭建
[issue 30] shopee golang development experience
正大期货主账户预4 周三信息汇总
Vscode——vscode 多窗口名字配置成项目名字
JS prototype. The find () method has no effect on the object array. It is urgent...
Interpretation of cube technology | past and present life of cube Rendering Design
Xiao P weekly Vol.08
WordPress重新生成特色图像插件:Regenerate Thumbnails
Mongodb usage
Lifeifei: I am more like a scientist in physics than an engineer
Report on various activity plans of safety month 2022 (28 pages)
距离度量 —— 欧式距离(Euclidean Distance)
Exness: the progress of Russia Ukraine negotiations is limited, and the RBA's decision remains unchanged
Update failed to update bytea type PostgreSQL