--- parser3/src/targets/cgi/parser3.C 2026/09/30 23:20:52 1.374 +++ parser3/src/targets/cgi/parser3.C 2026/10/07 19:37:27 1.376 @@ -5,7 +5,7 @@ Authors: Konstantin Morshnev , Alexandr Petrosian */ -volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.374 2026/09/30 23:20:52 moko Exp $"; +volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.376 2026/10/07 19:37:27 moko Exp $"; #include "pa_config_includes.h" @@ -17,6 +17,7 @@ volatile const char * IDENT_PARSER3_C="$ #include "pa_threads.h" #include "pa_vconsole.h" #include "pa_sapi_info.h" +#include "pa_code_cache.h" #ifdef _MSC_VER #include @@ -326,7 +327,13 @@ static void config_handler(SAPI_Info &in // only once config_filespec = locate_config(config_filespec, parser3_filespec); // process main auto.p only +#ifdef CODE_CACHE + Code_cache_manager::start(); +#endif r.core(config_filespec, false, String::Empty); +#ifdef CODE_CACHE + Code_cache_manager::finish(r); +#endif } static void connection_handler(SAPI_Info_HTTPD &info, HTTPD_Connection &connection) { @@ -455,7 +462,7 @@ static void real_parser_handler(bool cgi const char* request_method=getenv("REQUEST_METHOD"); if(!filespec_to_process){ - SAPI::send_error(*sapi_info, "Parser/" PARSER_VERSION); + SAPI::send_error(*sapi_info, "Parser/" PARSER_VERSION_WITH_FEATURES); exit(1); } @@ -595,7 +602,7 @@ static void usage(const char* message=NU " -l log_file Use this log file (/path/to/parser3.log)\n" " -p [host:]port Start web server on this port\n" " -h Display usage information (this message)\n", - PARSER_VERSION, + PARSER_VERSION_WITH_FEATURES, parser3_filespec ? parser3_filespec : "parser3" ); exit(EINVAL); }