In the official errata it was clarified that Invocations are gained at warlock levels only. So it's class levels...not character levels.
(do a google search for "5th Edition Errata" since EnWorld won't let me post the damn link because I haven't earned my big boy pants yet....FFS)
(do a google search for "5th Edition Errata" since EnWorld won't let me post the damn link because I haven't earned my big boy pants yet....FFS)