cacheloader.lua 345 B

123456789101112
  1. -- Copyright 2008 Steven Barth <steven@midlink.org>
  2. -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  3. -- Licensed to the public under the Apache License 2.0.
  4. local config = require "luci.config"
  5. local ccache = require "luci.ccache"
  6. module "luci.cacheloader"
  7. if config.ccache and config.ccache.enable == "1" then
  8. ccache.cache_ondemand()
  9. end