On the evolution of cooling cores in X‐ray galaxy clusters