Making a light source invisible to everything except shadow rays
There are two ways to do this.

Materials nodes:



Ray visibility:



Using these ray visibility checkboxes instead of nodes will speed up render times a little, however you lose the flexibility of nodes.