Updated code related to cache management in CMS core and modules.

This commit is contained in:
2015-11-02 10:50:05 +01:00
parent e40a7969fa
commit 5624892ebc
5 changed files with 49 additions and 42 deletions

View File

@@ -219,7 +219,7 @@ feature -- Hook: cache
end
end
a_response.clear_block_caches (a_cache_id_list)
a_response.clear_cache (a_cache_id_list)
end
end

View File

@@ -997,6 +997,17 @@ feature -- Element Change
status_code_set: status_code = a_status
end
feature -- Cache managment
clear_cache (a_cache_id_list: detachable ITERABLE [READABLE_STRING_GENERAL])
-- Clear caches identified by `a_cache_id_list',
-- or clear all caches if `a_cache_id_list' is Void.
do
if has_permissions (<<"clear blocks cache", "admin core caches">>) then
clear_block_caches (a_cache_id_list)
end
end
feature -- Generation
prepare (page: CMS_HTML_PAGE)