Ruby cgi needs to reload apache for new value?
问题 I have phusion-passenger installed with apache on Ubuntu. In my config.ru, I have the following code: require 'cgi' $tpl = CGI.new['myvar'] + '.rb' app = proc do |env| [200, { "Content-Type" => "text/html" }, [$tpl]] end run app So then when I go to my browser at http://localhost/?myvar=hello , I see the word hello printed out, which is fine. Then I change the url to http://localhost/?myvar=world , but the page still shows hello . Only after I reload apache will the page show world . Before