OpenWrt Forum Archive

Topic: luci modules - how to reload files in controller

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am writing luci modules.
I have files as luci/controller/xx.lua and luci/view/xx.htm
When I edited xx.htm, I can use the browser to say my changes immediately.
But the changes in xx.lua can not be reflected on webpages immediately, even after restarting uhttpd or luci-reload. I have to reboot everytime to say my changes.
What is the correct way to reload luci/controller/xx.lua ?

Many thanks!

finally find a way. Just delete the cache files in /tmp force luci to reload

The discussion might have continued from here.