Gamma-ray pulsars: polar cap or outer gap emission?