<commit_before><?php
class Vps_Component_Cache extends Zend_Cache_Core
{
    static private $_instance;
    private $_backend;
    private $_process = array(
        'insert' => array(), 
        'update' => array(), 
        'delete' => array()
    );
    private $_processed = false;
    
    public function __construct()
    {
        parent::__construct(array(
            'lifetime' => 30*60
        ));
        
        $this->_backend = new Zend_Cache_Backend_File(array(
            'cache_dir' => $this->_getCacheDir(),
            'hashed_directory_level' => 0,
            'file_name_prefix' => 'vpc',
            'hashed_directory_umask' => 0777,
            'cache_file_umask' => 0777
        ));
        
        $this->setBackend($this->_backend);
    }

    public function __destruct()
    {
        if (!$this->_processed && $this->_process) {
            //exceptions funktionieren im destruktor nicht
            d("There are unprocessed cache-actions, you must call process() somewhere");
        }<commit_msg>View-Cache Lifetime auf unendlich<commit_after><?php
class Vps_Component_Cache extends Zend_Cache_Core
{
    static private $_instance;
    private $_backend;
    private $_process = array(
        'insert' => array(), 
        'update' => array(), 
        'delete' => array()
    );
    private $_processed = false;
    
    public function __construct()
    {
        parent::__construct(array(
            'lifetime' => null
        ));
        
        $this->_backend = new Zend_Cache_Backend_File(array(
            'cache_dir' => $this->_getCacheDir(),
            'hashed_directory_level' => 0,
            'file_name_prefix' => 'vpc',
            'hashed_directory_umask' => 0777,
            'cache_file_umask' => 0777
        ));
        
        $this->setBackend($this->_backend);
    }

    public function __destruct()
    {
        if (!$this->_processed && $this->_process) {
            //exceptions funktionieren im destruktor nicht
            d("There are unprocessed cache-actions, you must call process() somewhere");
        }
{'fraction_non_alphanumeric': 0.12481997119539126, 'fraction_numerical': 0.01056168987037926, 'mean_word_length': 2.096582466567608, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '2722811', 'n_tokens_mistral': 611, 'n_tokens_neox': 585, 'n_words': 127}