I make some fix in gui, but my changes not apply (if i refresh page). How i can see my change? Maybe i can disable any cache to develop-debug process? How i can do it?
Now i clear /tmp and then run
11) Reload all services
Maybe some body have more true way?)
What exactly did you change?
Quote from: mimugmail on September 13, 2020, 06:53:57 AM
What exactly did you change?
I want to create new plugin, so i change some files in /usr/local/opnsense/mvc
I use this doc https://docs.opnsense.org/development/frontend/models_design.html
Not specific enough.
For example, i edit src/opnsense/mvc/app/models/OPNsense/MyModule/Menu/Menu.xml
How i can see any changes? How i can disable all cache??
Aha, that is better...
/usr/local/etc/rc.configure_plugins will refresh the menu and ACL cache as well as restarting syslog.
It is the standard hook for the plugin framework executed on +POST_INSTALL:
https://github.com/opnsense/plugins/blob/master/Templates/configure
This is why we try to provide an automatic plugin framework because it will give you less headache. ;)
Cheers,
Franco
Thank you) Add this to Develop Documentation, please :)
Just use the plugin framework and you're good... There's no reason not to unless you are modifying core which also provides similar Makefile glue and post-install hooks...
Cheers,
Franco