Add handler for building cache