Hi everybody, i am encountering quite a performance problem with the TT under mod_perl and would be glad if anyone here could assist.
I am currently running my web-app under mod_perl, but as far as I can see, none of the dynamic pages, put together using the TT is being chached. This means: I notice no performance increase, compared to running the sites on plain old CGI -> everytime I run such a page the whole processing takes place, which takes a couple of seconds until its done. Other files, not using the TT, but simply spooling out the HTML, using regular "print" statements, definitely get a performance boost under mod_perl, compared to CGI. So, I have the situation that all my pages going throught the TT are slow and the ones using "plain old" print spooling are fast. The processing of the templates takes place, like in the described CGI exmpales on this site. To be honest, not knowing much about mod_perl, I don“t understand what I have to change for the mod_perl envirionment. Is it enough to just use a global variable in each of the calling scripts, which stores the compiled template? Or would this be a definite "no no". Thanks for your time and for any input on this question. I would really appreciate it. setup: mod_perl2.x, apache 2.x, perl 5.8
