Macrophages are multifunctional cells that perform diverse roles in health and disease. Emerging evidence has suggested that these innate immune cells might also be capable of developing immunological memory, a trait previously associated with the adaptive system alone. While recent studies have focused on the dramatic macrophage reprogramming that follows infection and protects against secondary microbial attack, can macrophages also develop memory in response to other cues? Here, we show that apoptotic corpse engulfment by Drosophila macrophages is an essential primer for their inflammatory response to tissue damage and infection in vivo. Priming is triggered via calcium-induced JNK signaling, which leads to upregulation of the damage receptor Draper, thus providing a molecular memory that allows the cell to rapidly respond to subsequent injury or infection. This remarkable plasticity and capacity for memory places macrophages as key therapeutic targets for treatment of inflammatory disorders.