XenForo has a watcher system to automatically detect and update modified template files for Add-on and Style development.
While this does work fine, it is quite inefficient - if enabled every page load might check hundreds of files.
I'd therefore like to suggest a different, IMHO much more efficient approach:
Instead of checking every possible file when a template is requested, implement a CLI command to start a long-running process that uses OS functionality (inotify, etc.) to detect changed files and update the templates (and other Add-on data like phrases which is currently not supported at all).
While this does work fine, it is quite inefficient - if enabled every page load might check hundreds of files.
I'd therefore like to suggest a different, IMHO much more efficient approach:
Instead of checking every possible file when a template is requested, implement a CLI command to start a long-running process that uses OS functionality (inotify, etc.) to detect changed files and update the templates (and other Add-on data like phrases which is currently not supported at all).
Upvote
15