<commit_before><?php
abstract class Vpc_Menu_Abstract_Trl_Component extends Vpc_Chained_Trl_Component
{
    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();
        $ret['parentPage'] = self::getChainedByMaster($ret['parentPage'], $this->getData());
        return $ret;
    }

    protected function _getChainedComponent($component)
    {
        $ret = Vpc_Chained_Trl_Component::getChainedByMaster($component, $this->getData());
        if ($ret) {
            if (isset($component->current)) $ret->current = $component->current;
            if (isset($component->class)) $ret->class = $component->class;
        }
        return $ret;
    }
}<commit_msg>Menu-Cache for Trl is now deleted correctly<commit_after><?php
abstract class Vpc_Menu_Abstract_Trl_Component extends Vpc_Chained_Trl_Component
{
    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();
        $ret['parentPage'] = self::getChainedByMaster($ret['parentPage'], $this->getData());
        return $ret;
    }

    protected function _getChainedComponent($component)
    {
        $ret = Vpc_Chained_Trl_Component::getChainedByMaster($component, $this->getData());
        if ($ret) {
            if (isset($component->current)) $ret->current = $component->current;
            if (isset($component->class)) $ret->class = $component->class;
        }
        return $ret;
    }

    public static function getStaticCacheMeta($componentClass)
    {
        $ret = parent::getStaticCacheMeta($componentClass);
        foreach (Vpc_Abstract::getComponentClasses() as $class) {
            foreach (Vpc_Abstract::getSetting($class, 'generators') as $key => $generator) {
                if (!isset($generator['showInMenu']) || !$generator['showInMenu']) continue;
                $generator = current(Vps_Component_Generator_Abstract::getInstances(
                    $class, array('generator' => $key))
                );
                if (!$generator->getGeneratorFlag('page') || !$generator->getGeneratorFlag('table')) continue;
                $ret[] = new Vps_Component_Cache_Meta_Static_Model($generator->getModel());
            }
        }

        $ret[] = new Vps_Component_Cache_Meta_Static_Model('Vps_Component_Model');
        $ret[] = new Vps_Component_Cache_Meta_Static_Model('Vpc_Menu_Abstract_Model');

        return $ret;
    }
}
{'fraction_non_alphanumeric': 0.13655462184873948, 'fraction_numerical': 0.0, 'mean_word_length': 3.1625874125874125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, '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': '7538892', 'n_tokens_mistral': 674, 'n_tokens_neox': 672, 'n_words': 114}