Adhoc query caching prior to 2012

Someone was saying prior to 2012, cache plans were created for stored procedures but not adhoc queries. I believe that prior to 2012 adhoc queries also had cached plans. Was there some development or feature introduced in 2012 for caching ad-hoc plans? Maybe related to parameters.