Added function to clean up expired posts in top posts cache.