mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-30 19:30:04 +01:00
closes #2677
This commit is contained in:
@@ -107,6 +107,11 @@ var path = require('path'),
|
||||
|
||||
sitemap.obj.toXML(callback);
|
||||
});
|
||||
},
|
||||
clearCache: function() {
|
||||
if (sitemap.obj) {
|
||||
sitemap.obj.clearCache();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -175,6 +175,11 @@ SocketAdmin.settings.set = function(socket, data, callback) {
|
||||
meta.settings.set(data.hash, data.values, callback);
|
||||
};
|
||||
|
||||
SocketAdmin.settings.clearSitemapCache = function(socket, data, callback) {
|
||||
require('../sitemap').clearCache();
|
||||
callback();
|
||||
};
|
||||
|
||||
SocketAdmin.email.test = function(socket, data, callback) {
|
||||
if (plugins.hasListeners('action:email.send')) {
|
||||
emailer.send('test', socket.uid, {
|
||||
|
||||
@@ -26,8 +26,12 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<label>Number of Topic to Display in Sitemap</label>
|
||||
<input class="form-control" type="text" placeholder="" data-field="sitemapTopics" />
|
||||
<div class="form-group">
|
||||
<label>Number of Topic to Display in Sitemap</label>
|
||||
<input class="form-control" type="text" placeholder="" data-field="sitemapTopics" />
|
||||
</div>
|
||||
|
||||
<button id="clear-sitemap-cache" class="btn btn-warning">Clear Sitemap Cache</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user