Skip to content
Snippets Groups Projects
Commit b977e020 authored by Andy Yates's avatar Andy Yates
Browse files

Making a note to never ever retire this bit of code

parent 06394b55
No related branches found
No related tags found
No related merge requests found
......@@ -450,6 +450,11 @@ sub fetch_all_by_Slice_constraint {
if ( exists( $cache->{$key} ) ) {
# Clear the bound parameters and return the cached data.
$self->{'_bind_param_generic_fetch'} = ();
#IMPORTANT: NEVER EVER RETURN A COPY OF THE DATA STRUCTURE.
# This will hold arrays of values. Since we've been doing
# this for so long people are expecting multiple calls
# to fetch_by_SliceXXXXX() methods to return the same
# array reference.
return $cache->{$key};
}
} ## end if ( !( defined( $self...)))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment