f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
206 stars 89 forks source link

SQL Mapper, columns and cache #344

Closed Vladzimir closed 2 years ago

Vladzimir commented 2 years ago

If you pass the names of the columns to the mapper, then when the cache is enabled, the cache is built without taking into account these columns. $fw->hash($this->dsn.$table).'.schema' The problem is relevant for function find and findone. This can lead to collisions if a single column mapper is cached first. Or creates an extra load on the selection, if you need to select only one column