From 7b1ed699d2d798b693413f9dcc8bd7dde73f839c Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 11 May 2013 13:34:56 +0200 Subject: rename ``flush_cache`` -> ``flush_lookup_cache`` --- luaotfload-database.lua | 6 +++--- luaotfload-tool.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/luaotfload-database.lua b/luaotfload-database.lua index ffcf536..ac10d20 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -239,7 +239,7 @@ end local crude_file_lookup local crude_file_lookup_verbose local find_closest -local flush_cache +local flush_lookup_cache local font_fullinfo local load_names local load_lookups @@ -1392,7 +1392,7 @@ local function scan_os_fonts(fontnames, newfontnames) return n_scanned, n_new end -flush_cache = function () +flush_lookup_cache = function () if not names.lookups then names.lookups = load_lookups() end names.lookups = { } collectgarbage"collect" @@ -1651,7 +1651,7 @@ end --- export functionality to the namespace “fonts.names” ----------------------------------------------------------------------- -names.flush_cache = flush_cache --- concerns lookups +names.flush_lookup_cache = flush_lookup_cache names.save_lookups = save_lookups names.load = load_names names.save = save_names diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index 7baeafd..2942782 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -293,7 +293,7 @@ actions.generate = function (job) end actions.flush = function (job) - local success, lookups = names.flush_cache() + local success, lookups = names.flush_lookup_cache() if success then local success = names.save_lookups() if success then -- cgit v1.2.3