Modify __clear_cache function

Clears cache after function is called.

The reload_config_files() function needs to clear cache after it is called.

Partially implements bp cfg-reload-config-files

Change-Id: If046719253bca4ca4eabd2a2abdaf09e44500099