<commit_before><?php

class Basesympal_content_types_Actions extends autoSympal_content_typesActions
{
  public function preExecute()
  {
    parent::preExecute();

    $this->getContext()->getEventDispatcher()->connect('admin.save_object', array($this, 'listenToAdminSaveObject'));
  }

  public function listenToAdminSaveObject(sfEvent $event)
  {
    $this->resetSympalRoutesCache();
  }
}<commit_msg>[1.4][sfSympalPlugin][1.0] Clearing cache when content types are saved<commit_after><?php

class Basesympal_content_types_Actions extends autoSympal_content_typesActions
{
  public function preExecute()
  {
    parent::preExecute();

    $this->getContext()->getEventDispatcher()->connect('admin.save_object', array($this, 'listenToAdminSaveObject'));
  }

  public function listenToAdminSaveObject(sfEvent $event)
  {
    $this->clearCache();
  }
}
{'fraction_non_alphanumeric': 0.12895662368112543, 'fraction_numerical': 0.004689331770222743, 'mean_word_length': 6.237288135593221, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5112616', 'n_tokens_mistral': 260, 'n_tokens_neox': 255, 'n_words': 41}