- if not config.debug and s.exists("production.%s" % name):
- s.remove("production.%s" % name)
- if config.debug and s.exists("debug.%s" % name):
- s.remove("debug.%s" % name)
+ if not config.debug and s.exists("production.%s" % name, type):
+ s.remove("production.%s" % name, type)
+ if config.debug and s.exists("debug.%s" % name, type):
+ s.remove("debug.%s" % name, type)