Fixed issue #1029: Add function to control the TGitCache module

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>