wire app code to index cache