What does the phrase “ignorance is bliss” mean?

“Ignorance is bliss” refers to times when it is better not to know something than to know it.