init_cache(); if ( ! in_array($file, static::$source_cache[get_called_class()])) { static::$source_cache[get_called_class()][] = $file; } // TODO - flush cache to persistent storage } protected function check_processed($file) { $this->init_cache(); return in_array($file, static::$source_cache[get_called_class()]); } } ?>