Mapper cache an column

37 views
Skip to first unread message

Vlad Go

unread,
Jun 11, 2022, 7:26:01 PM6/11/22
to Fat-Free Framework
 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
Reply all
Reply to author
Forward
0 new messages