Search code examples
perlmojolicious

Mojolicious response caching?


Hello I experimenting some small things with Mojolicious and I have the following question:

  • What happens when a request is received ?
  • Is there some caching like in modperl or is the code compiled each time ?

Solution

  • It depends on the server it runs under.

    If you use a pre-forking app server or fastcgi server then you'll get one or more processes re-used for multiple requests.

    You can run a simple CGI, launching the script for each request, but it wouldn't be common.

    Deployment options are in the manual.