Optimized caching behaviour, automatically flush caches in dev environment
This commit is contained in:
parent
f2a70398f2
commit
0dbf2f171b
4 changed files with 5 additions and 4 deletions
1
Makefile
1
Makefile
|
@ -34,6 +34,7 @@ hostcopy:
|
|||
for i in $(MODULES); do cp -a $$i/hostfiles/* host/ -R 2>/dev/null || true; done
|
||||
rm -f host/luci
|
||||
ln -s .$(LUCI_MODULEDIR) host/luci
|
||||
rm -rf /tmp/luci-* || true
|
||||
|
||||
hostenv: host ucidefaults
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ function cache_ondemand(...)
|
|||
end
|
||||
|
||||
function cache_enable(cachepath, mode)
|
||||
cachepath = cachepath or "/tmp/.luciccache"
|
||||
cachepath = cachepath or "/tmp/luci-modulecache"
|
||||
mode = mode or "r--r--r--"
|
||||
|
||||
local loader = package.loaders[2]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/lua
|
||||
require "luci.cacheloader"
|
||||
require "luci.sgi.cgi"
|
||||
luci.dispatcher.indexcache = "/tmp/.luciindex"
|
||||
luci.dispatcher.indexcache = "/tmp/luci-indexcache"
|
||||
luci.sgi.cgi.run()
|
|
@ -21,7 +21,7 @@ config extern flash_keep
|
|||
config internal languages
|
||||
|
||||
config internal sauth
|
||||
option sessionpath "/tmp/.lucisessions"
|
||||
option sessionpath "/tmp/luci-sessions"
|
||||
option sessiontime 3600
|
||||
|
||||
config internal ccache
|
||||
|
@ -29,6 +29,6 @@ config internal ccache
|
|||
|
||||
config internal template
|
||||
option compiler_mode file
|
||||
option compiledir "/tmp/.lucitplcache"
|
||||
option compiledir "/tmp/luci-templatecache"
|
||||
|
||||
config internal themes
|
||||
|
|
Loading…
Reference in a new issue