X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fbase%2Fluasrc%2Fcacheloader.lua;fp=modules%2Fbase%2Fluasrc%2Fcacheloader.lua;h=942c4b7b484557700bab8a151e46b90a635bc318;hp=0000000000000000000000000000000000000000;hb=d4dc08dcb219a278a94e68aa87c13bca6361eeca;hpb=8c866ce4527f22d413fca3a46691ea31c58154c5 diff --git a/modules/base/luasrc/cacheloader.lua b/modules/base/luasrc/cacheloader.lua new file mode 100644 index 000000000..942c4b7b4 --- /dev/null +++ b/modules/base/luasrc/cacheloader.lua @@ -0,0 +1,23 @@ +--[[ +LuCI - Lua Configuration Interface + +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ +]]-- + +local config = require "luci.config" +local ccache = require "luci.ccache" + +module "luci.cacheloader" + +if config.ccache and config.ccache.enable == "1" then + ccache.cache_ondemand() +end \ No newline at end of file