glFusion / glfusion

glFusion CMS - Advanced Content Management with Style
https://www.glfusion.org
GNU General Public License v2.0
14 stars 15 forks source link

Require a key passed to Collection::tryCache() #581

Closed leegarner closed 1 year ago

leegarner commented 2 years ago

Functions that retrieve rows or objects from a collection may duplicate the same cache key, thus returning the wrong data type. This requires tryCache() to be passed a key such as "row" or "obj" to create unique cache keys.