[Catalyst] Requests get rendered twice.. TT-Template (View::HTML->process)

Martin Gillmaier gillmaus at googlemail.com
Tue Mar 6 14:38:54 GMT 2012


Hello to All!

First, I am a perl-programmer and I am about to accomplish my first =

catalyst-project.
Catalyst is really nice and flexible, and I am happy to get used to it.
However, I kindly like you ask you about an issue, that I just can't =

understand and that is driving me mad:

I view the debug output in the terminal/bash:
/*$> script/expert_server.pl -r*
/
And each time I do a request to the browser, I see an output like this =

in my bash:
/
*[info] *** Request 14 (0.560/s) [1678] [Tue Mar  6 15:12:59 2012] ***
[debug] Found sessionid "6f332e165af682b03622e1b74318d5a646e69a22" in cookie
[debug] Restored session "6f332e165af682b03622e1b74318d5a646e69a22"
[debug] "GET" request for "person/login" from "192.168.56.1"
[debug] Path is "person/login"
[debug] Rendering template "person/login.tt"
[debug] Found sessionid "6f332e165af682b03622e1b74318d5a646e69a22" in cookie
[debug] Restored session "6f332e165af682b03622e1b74318d5a646e69a22"
[debug] Response Code: 200; Content-Type: text/html; charset=3Dutf-8; =

Content-Length: 7723
[info] Request took 0.077044s (12.980/s)
.------------------------------------------------------------+-----------.
| Action                                                     | Time      |
+------------------------------------------------------------+-----------+
| /auto                                                      | 0.003336s |
| /person/auto                                               | 0.002680s |
| /person/login                                              | 0.000187s |
| /end                                                       | 0.006762s |
|  -> expert::View::HTML->process                            | 0.005926s |
'------------------------------------------------------------+-----------'

[info] *** Request 15 (0.600/s) [1678] [Tue Mar  6 15:12:59 2012] ***
[debug] Found sessionid "6f332e165af682b03622e1b74318d5a646e69a22" in cookie
[debug] Restored session "6f332e165af682b03622e1b74318d5a646e69a22"
[debug] "GET" request for "person/login" from "192.168.56.1"
[debug] Path is "person/login"
[debug] Rendering template "person/login.tt"
[debug] Found sessionid "6f332e165af682b03622e1b74318d5a646e69a22" in cookie
[debug] Restored session "6f332e165af682b03622e1b74318d5a646e69a22"
[debug] Response Code: 200; Content-Type: text/html; charset=3Dutf-8; =

Content-Length: 7723
[info] Request took 0.026152s (38.238/s)
.------------------------------------------------------------+-----------.
| Action                                                     | Time      |
+------------------------------------------------------------+-----------+
| /auto                                                      | 0.002289s |
| /person/auto                                               | 0.001404s |
| /person/login                                              | 0.000108s |
| /end                                                       | 0.004584s |
|  -> expert::View::HTML->process                            | 0.003944s |
'------------------------------------------------------------+-----------'*/

So I have the same rendering process twice. Always and everywhere. Even =

the install on the production-server (fastcgi) has the same problem.
This leads to several problems, as you will know. Can you tell me where =

to search for that issue or do you have an idea what the problem might be?

Regards,
Martin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120306/c9a49=
67a/attachment.htm


More information about the Catalyst mailing list