ChatGPT的wp站服务器优化建议

1、安装Redis2、修改Mysql配置 (2C2G参考)innodb_buffer_pool_size = 512M #固定缓存max_connections = 100 #最大并发连接数上限query_cache_size = 0 #关闭老旧的查询缓存table_open_cache = 1024 #缓存已打开的表,减少频繁打开文件的开销tmp_table_size =

- 阅读全文 -

Zencart提交订单出现WARNING: An Error occurred

使用二开的PPOffline等支付接口时,提交订单出现WARNING: An Error occurred。环境Debian10+Mysql5.7,原因是MySQL 5.7 很常见的严格模式。在MySQL的cnf里找到sql-mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES把STRICT_TRANS_TABLES删除,然后重启MySql和PHP即可

- 阅读全文 -

后台管理员列表页功能增强

一、隐藏ID=1的超级用户1、adminpath/user.php2、在103行左右,找到$userList = zen_get_users();3、在下边加一行$userList = array_values(array_filter($userList, function($u) {return (int)$u['id'] !== 1;}));二、设置只有ID=1的Supe

- 阅读全文 -

Marcus商品详情页的radio美化

1、覆盖原版的/includes/modules/marcus/attributes.php文件2、将/includes/templates/marcus/templates/tpl_modules_attributes.php里的46行的<ul class="options-swatch options-swatch--color options-swatch--lg"

- 阅读全文 -

Glozin主题经验记录

※ 官方英文教程 https://wpglozin.com/docs/#/※ Contact顶部的联系方式在page contact 里直接edit,拉到最底下,不在elementor里,不成功的话直接sql因为有2条记录。UPDATE wp_postmeta SET meta_value = 'Please fill out the form below and our team will re

- 阅读全文 -