text: from django.db.models.signals import post_save
  from django.dispatch import Signal, receiver
  from django.core.cache import cache
  
  from webdjango.models.Core import Plugin, Theme, CoreConfig
  
  config_register = Signal()
  config_group_register = Signal()
  
  
  @receiver(post_save, sender=Plugin)
  @receiver(post_save, sender=Theme)
  def installPluginTheme(sender, instance, created, *args, **kwargs):
      if hasattr(cache, 'delete_pattern'):
          cache.delete_pattern("*core_init*")
  
      if 'active' in instance.get_dirty_fields():
          if instance.active:
              # TODO: Install the Theme/Plugin, Maybe Run Migration or anything like this
              obj = sender.objects.get(pk=instance.pk)
              obj.current_version = obj.version
              obj.save()
  
  @receiver(post_save, sender=CoreConfig)
  def coreconfig_saved(sender, instance, created, *args, **kwargs):
      if hasattr(cache, 'delete_pattern'):
          cache.delete_pattern("*core_init*")