original_docstring: 
          Remove any cached values associated with this scenario.
          Warning: additional caches will need to be added to this method
          
docstring: Remove any cached values associated with this scenario.
  Warning: additional caches will need to be added to this method
docstring_tokens: Remove any cached values associated with this scenario . Warning : additional caches will need to be added to this method
code: def invalidate_cache(self):
          '''
          Remove any cached values associated with this scenario.
          Warning: additional caches will need to be added to this method
          '''
          if not self.id:
              return True
  
          # depends on django-redis as the cache backend!!!
          # assumes that all caches associated with this scenario contain <uid>_*
          key_pattern = "%s_*" % self.uid
          cache.delete_pattern(key_pattern)
  
          # remove the xml file
          try:
              os.remove(self.mapnik_xml_path)
          except OSError:
              pass
  
          # delete the tiles directly (and any remaining )
          [redisconn.delete(x) for x in redisconn.keys(pattern="*%s*" % self.uid)]
  
          # remove the PlanningUnitShapes
          PlanningUnitShapes.objects.filter(stamp=self.id).delete()
  
          return True
code_tokens: def invalidate_cache ( self ) : if not self . id : return True key_pattern = "%s_*" % self . uid cache . delete_pattern ( key_pattern ) try : os . remove ( self . mapnik_xml_path ) except OSError : pass [ redisconn . delete ( x ) for x in redisconn . keys ( pattern = "*%s*" % self . uid ) ] PlanningUnitShapes . objects . filter ( stamp = self . id ) . delete ( ) return True
short_docstring: Remove any cached values associated with this scenario.
short_docstring_tokens: Remove any cached values associated with this scenario .
comment: '''
          Remove any cached values associated with this scenario.
          Warning: additional caches will need to be added to this method
          '''$SEP$# depends on django-redis as the cache backend!!!$SEP$# assumes that all caches associated with this scenario contain <uid>_*$SEP$# remove the xml file$SEP$# delete the tiles directly (and any remaining )$SEP$# remove the PlanningUnitShapes