[etwist] remove no-longer-necessary uicache cleaning
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 18 Sep 2015 11:05:47 +0200
changeset 10898 c96d67251a9d
parent 10897 7c386161ebd6
child 10899 e0abfc3b4a10
[etwist] remove no-longer-necessary uicache cleaning It was done before we were actually up, which means it could be too eager when combined with #6893185. Closes #6893247.
etwist/twctl.py
--- a/etwist/twctl.py	Mon Nov 23 17:58:10 2015 +0100
+++ b/etwist/twctl.py	Fri Sep 18 11:05:47 2015 +0200
@@ -17,10 +17,6 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """cubicweb-clt handlers for twisted"""
 
-from os.path import join
-
-from logilab.common.shellutils import rm
-
 from cubicweb.toolsutils import CommandHandler
 from cubicweb.web.webctl import WebCreateHandler, WebUpgradeHandler
 
@@ -36,9 +32,6 @@
 
     def start_server(self, config):
         from cubicweb.etwist import server
-        config.info('clear ui caches')
-        for cachedir in ('uicache', 'uicachehttps'):
-            rm(join(config.appdatahome, cachedir, '*'))
         return server.run(config)
 
 class TWStopHandler(CommandHandler):