mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 01:25:13 +08:00
🐤 Sync 2026-05-08 20:31:49
This commit is contained in:
1 parent
42da788631
commit
a79ed27213
22 files changed
+738
-92
No files matched your search
@@ -4,10 +4,13 @@ import { glob, unlink } from 'fs';
|
||||
|
||||
return {
|
||||
menu_flush: function() {
|
||||
for (let path in glob('/tmp/luci-indexcache', '/tmp/luci-indexcache.*'))
|
||||
for (let path in glob(
|
||||
'/tmp/luci-indexcache', '/tmp/luci-indexcache.*',
|
||||
'/var/luci-indexcache', '/var/luci-indexcache.*'
|
||||
))
|
||||
unlink(path);
|
||||
|
||||
system('rm -rf /tmp/luci-modulecache 2>/dev/null');
|
||||
system('rm -rf /tmp/luci-modulecache /var/luci-modulecache 2>/dev/null');
|
||||
|
||||
http.prepare_content('application/json');
|
||||
http.write_json({ flushed: true });
|
||||
|
||||
Reference in new issue
Block a user