Uh oh!
There was an error while loading. Please reload this page.
[5.x] Cache FieldtypeRepository::find() calls to a property - #9643
Conversation
Test adjustments due to cloned instance no longer tracking with mocked `$fieldtype =`
Field::fieldtype() calls behind BlinkFieldtypeRepository::find() calls to a propertyI changed this so that it caches fieldtype instances onto the FieldtypeRepository. This cleaned it up quite a bit. I believe the bigger offender was that Now, yes, Also, any other places that use ...But I have some broken tests so clearly I need to sort some things out. |
…nstance (Fieldtype::setField does a clone)
This PR caches the results of
return FieldtypeRepository::find($this->type());withinField::fieldtype()to reduce the number of calls made to the underlying repository.