|
@ -1307,6 +1307,9 @@ class EESiteUpdateController(CementBaseController): |
|
|
if oldcachetype != 'wpredis' and data['wpredis']: |
|
|
if oldcachetype != 'wpredis' and data['wpredis']: |
|
|
try: |
|
|
try: |
|
|
if installwp_plugin(self, 'redis-cache', data): |
|
|
if installwp_plugin(self, 'redis-cache', data): |
|
|
|
|
|
if EEShellExec.cmd_exec(self, "grep -r \"WP_CACHE_KEY_SALT\" {0}/wp-config.php".format(ee_site_webroot)): |
|
|
|
|
|
pass |
|
|
|
|
|
else: |
|
|
try: |
|
|
try: |
|
|
wpconfig = open("{0}/wp-config.php".format(ee_site_webroot), |
|
|
wpconfig = open("{0}/wp-config.php".format(ee_site_webroot), |
|
|
encoding='utf-8', mode='a') |
|
|
encoding='utf-8', mode='a') |
|
|