2020年3月20日公告:文章源自狐狸影视城-https://fox-studio.net/32389.html
1. vipsystem Pro(会员系统)旧版本已经停止更新及出售文章源自狐狸影视城-https://fox-studio.net/32389.html
2. 新版会员系统本官网已经上线,请访问新版官网地址 vipsystem.pro。文章源自狐狸影视城-https://fox-studio.net/32389.html
以下是旧版插件的内容介绍。已经不能购买文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
写了一篇使用“数据库优化”扩展功能对WordPress数据库进行“瘦身”的教程,请戳这里:WordPress 数据库清理高级技巧(半自动化)文章源自狐狸影视城-https://fox-studio.net/32389.html
以及使用该功能录制的视频案例:WordPress数据库优化。购买该功能后,免费获得案例课程。文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
功能介绍
“数据库优化”扩展功能,针对WordPress数据库的优化设计。内置30多条常用mysql语句,以及处理VipSystem Pro数据的专属语句。文章源自狐狸影视城-https://fox-studio.net/32389.html
“Vipsystem Pro 数据库优化”针对插件数据的管理。当网站用户量非常庞大时,可以通过这里批量操用户的数据。文章源自狐狸影视城-https://fox-studio.net/32389.html
“WordPress 数据库优化”针对WordPress内置的数据库进行管理。很多网站会安装删除许多插件,虽然插件删除了,但是如“wp_options”表却残留了该插件的一些数据。再如网站发布和删除过很多文章,删除后的文章的“wp_postmeta”数据却残留在表中,并未删除。文章源自狐狸影视城-https://fox-studio.net/32389.html
在我开发时,发现有2W条wp_postmeta数据是孤立的,对应文章并不存在于“wp_posts”表中。文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
先通过查询,查看符合条件的数据数量统计,提交命令后,在页面上方会显示出结果。文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
默认是查看符合条件的数据数量统计,使用的代码是文章源自狐狸影视城-https://fox-studio.net/32389.html
SELECT COUNT(*) FROM wp_postmeta WHERE post_id not in (select ID from wp_posts)
如果想查看具体的内容,将“count(*)”更换为“*”(星号)即可。如:文章源自狐狸影视城-https://fox-studio.net/32389.html
SELECT * FROM wp_postmeta WHERE post_id not in (select ID from wp_posts)
查询到的结果如图:文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
2W条记录,显示是很多的,但是查找速度却非常快。大概六秒文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
查询到的结果是不存在的残余的postmeta数据,随机抽取一个ID访问测试。文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
在浏览器中输入,提示文章不存在。文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
这些都只是处理WordPress 内置数据库的预设代码,后期根据用户反馈,也会增加更多常用的预设。文章源自狐狸影视城-https://fox-studio.net/32389.html
该功能除了预设,您还可以在“mysql 代码”框中手动输入命令执行,如果您了解mysql语句的话。文章源自狐狸影视城-https://fox-studio.net/32389.html
预设只是将命令自动填写在“mysql 代码”框中,表单提交的mysql语句也是从这里输入的。完全可以手动修改。文章源自狐狸影视城-https://fox-studio.net/32389.html
因此,您可以丢掉其他数据库优化管理的插件了,节约服务器资源。并且Vipsystem Pro插件的这些扩展功能完全是独立的,需要那个功能就下载安装该功能。文件不会默认存放在插件的文件夹主中,不用担心会影响网站的运行速度。文章源自狐狸影视城-https://fox-studio.net/32389.html
对于“Vipsystem Pro 数据库优化”也有很多细致的命令调整。如删除一年前的用户数据等,还可以自行修改条件中的时间。文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
确认查询结果后,再选择“删除”命令,后面的选项保持一致。便可以快速解决你的问题。文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
程序员的世界
因为最新学习了面向对象的编程模式(OOP)和数据对象(PDO),在封装和扩展上有了质的提升。好处是在你拿到文件后,不用特别懂php编程,就可以自定义添加自己想要的mysql命令预设。文章源自狐狸影视城-https://fox-studio.net/32389.html
其中包含三个类文章源自狐狸影视城-https://fox-studio.net/32389.html
<?php abstract class DatabaseConfig; //抽象类,用来写入mysql预设语句的。 class DatabaseOptimization extends DatabaseConfig; //继承了DatabaseConfig类的方法集合,里面是页面布局的html和php代码,基本可以忽略。 class database_for_pdo; //PDO的数据库操作类,其中全部使用try{}catch(){}来编写的,确保了语句的安全和完整性。
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html
文章源自狐狸影视城-https://fox-studio.net/32389.html相关阅读文章源自狐狸影视城-https://fox-studio.net/32389.html
完整功能 历史更新 QQ交流群 WordPress 数据库清理高级技巧(半自动化)文章源自狐狸影视城-https://fox-studio.net/32389.html
WordPress数据库备份 wordpress数据库优化文章源自狐狸影视城-https://fox-studio.net/32389.html

2017年1月21日 上午2:24 1F
哈哈,我用自己开发的这个功能,把我网站数据库从 69MB 缩减至 51MB。用户数量从1W 锐减至7K,除了保留活跃用户,还保留了一年内注册后不活跃的用户。三四千用户数据不是很多,关键是WordPress中wp_postmeta和wp_usermeta以及wp_options中的feed 这些缓存太多了。用这个清理后,杠杠滴。。。。。。太6