[BZ-1027221] prevent KnowledgeAgent to keep rebuilding kbase from cached files
(cherry picked from commit e2ebec1f9b8af6e97fde38ff267c5e573dc998c0)