Quantum Field Theory on Spacetimes with a Compactly Generated Cauchy Horizon