Updated code related to cache management in CMS core and modules.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user