[Cppcms-users] Reload views from .so
Brought to you by:
artyom-beilis
From: Marcel H. <ke...@co...> - 2011-11-29 20:23:50
|
Hi guys, i really love this framework and although I'm still learning CPP it's great. The performance is... awesome! :) Big contrast to PHP or Tomcat. So my question. I'd like to run the server and from time to time I'd like to change the pages, but without resetting the server, so I thought I'm putting some signal handler, which will reload all the views when they get a SIGUSR1. I looked into the source and found, that you will check in "views_pool.cpp:331" if the config auto_reload flag is true. So I thought it would be awesome, if you could outsource the thing where you reload the files into a method you can call from the outside if you want to. (wow, 4 times you in one sentence) What is your opinion. Worth a try? |