Pass cache into frontend constructor