Fix for statistics enabled config.
This commit is contained in:
@@ -16,7 +16,7 @@ class Routes {
|
||||
private cache = {};
|
||||
|
||||
constructor() {
|
||||
if (!config.DATABASE.ENABLED) {
|
||||
if (config.DATABASE.ENABLED && config.STATISTICS.ENABLED) {
|
||||
this.createCache();
|
||||
setInterval(this.createCache.bind(this), 600000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user