Following is the implementation:
config.js
- interval : 2 // in hrs
index.js
- setInterval(removeHistory, settings.interval);
- function removeHistory() {}
How the interval value can be dynamically update on changing in config file without restarting the server ?