Learning every note on the fretboard

What are some effective methods to memorize what each note on the fretboard is?

I’ve started taking my guitar theory more seriously after almost 10 years of playing and while I can solo very effectively in any key playing the obvious notes (Ionian), when it comes to playing the changes (in an advanced way) I struggle. My biggest issue is not knowing every single note I play.

If you have any effective exercises please share.