Allow disabling doctrine cache.