op-packages/luci-theme-design/ucode/controller/design_theme.uc
github-actions[bot] 6d43af9148 🏅 Sync 2026-04-19 00:24:08
2026-04-19 00:24:08 +08:00

16 lines
322 B
Ucode

'use strict';
import { glob, unlink } from 'fs';
return {
menu_flush: function() {
for (let path in glob('/tmp/luci-indexcache', '/tmp/luci-indexcache.*'))
unlink(path);
system('rm -rf /tmp/luci-modulecache 2>/dev/null');
http.prepare_content('application/json');
http.write_json({ flushed: true });
}
};