Jorge Olivares
Jorge Olivares

Reputation: 1492

Using perl_set in nginx with perl module

Having this in nginx configuration file:

http {
    perl_modules perl/lib;
    perl_require utiles.pm;
    perl_set $user_perfil utiles::get_perfil;
}

If i use the ssi variable "user_perfil" in a html page, like this:

<!--# echo var="user_perfil" -->

everytime when i do that, nginx calls the function 'utiles::get_perfil' ? or just the first time ?

Upvotes: 0

Views: 2355

Answers (1)

ig0r
ig0r

Reputation: 106

That function will run everytime when variable is using;

Upvotes: 1

Related Questions