Browse Source

exit=False on error while ee clean --all

feature/refactor-php
Prabuddha Chakraborty 10 years ago
parent
commit
11bcccfd40
  1. 8
      ee/cli/plugins/clean.py

8
ee/cli/plugins/clean.py

@ -80,7 +80,7 @@ class EECleanController(CementBaseController):
Log.info(self, "Memcache not installed") Log.info(self, "Memcache not installed")
except Exception as e: except Exception as e:
Log.debug(self, "{0}".format(e)) Log.debug(self, "{0}".format(e))
Log.error(self, "Unable to restart Memcached") Log.error(self, "Unable to restart Memcached", False)
@expose(hide=True) @expose(hide=True)
def clean_fastcgi(self): def clean_fastcgi(self):
@ -89,7 +89,7 @@ class EECleanController(CementBaseController):
Log.info(self, "Cleaning NGINX FastCGI cache") Log.info(self, "Cleaning NGINX FastCGI cache")
EEShellExec.cmd_exec(self, "rm -rf /var/run/nginx-cache/*") EEShellExec.cmd_exec(self, "rm -rf /var/run/nginx-cache/*")
else: else:
Log.error(self, "Unable to clean FastCGI cache") Log.error(self, "Unable to clean FastCGI cache", False)
@expose(hide=True) @expose(hide=True)
def clean_opcache(self): def clean_opcache(self):
@ -105,7 +105,7 @@ class EECleanController(CementBaseController):
" please check you have admin tools installed") " please check you have admin tools installed")
Log.debug(self, "please check you have admin tools installed," Log.debug(self, "please check you have admin tools installed,"
" or install them with `ee stack install --admin`") " or install them with `ee stack install --admin`")
Log.error(self, "Unable to clean opcache") Log.error(self, "Unable to clean opcache", False)
@expose(hide=True) @expose(hide=True)
def clean_pagespeed(self): def clean_pagespeed(self):
@ -116,7 +116,7 @@ class EECleanController(CementBaseController):
else: else:
Log.debug(self, "/var/ngx_pagespeed_cache does not exist," Log.debug(self, "/var/ngx_pagespeed_cache does not exist,"
" so cache not cleared") " so cache not cleared")
Log.error(self, "Unable to clean pagespeed cache") Log.error(self, "Unable to clean pagespeed cache", False)
def load(app): def load(app):

Loading…
Cancel
Save