[3.9] Decouple Phraseanet cache factory and cache connection factory