Onex erp使用kvstore和cache单独存储方案(可选 redis 和 memcache)

Onex erp使用kvstore和cache 单独存储方案 (可选 redis 和 memcache)如下:

1、将base这个app替换成 erp 3.6.7版本的base

2、修改config.php

Onex erp使用kvstore和cache单独存储方案(可选 redis 和 memcache)-搬砖酱的笔记

注:

1.Cache配置时只能只能配置Memcache或者Redis中的一个。

2.kvstore用redis 需开启持久化,在配置文件config.php里面

define('WITHOUT_KVSTORE_PERSISTENT', false);

3.如遇到如下致命错误,为php的redis扩展(php -m|grep redis)没装,请安装redis扩展

Onex erp使用kvstore和cache单独存储方案(可选 redis 和 memcache)-搬砖酱的笔记

4.确认下redis.php是否存在,默认旧版本不支持redis储存kvstore

在网站目录下  ls app/base/lib/kvstore |grep redis

如果没有redis.php,请向我们索取(注:ecstore的redis.php和 ERP redis.php不通用,如自行从ECstore copy,造成的后果自负)