tractorcow-farm / silverstripe-fluent

Multi-language translate module for Silverstripe, without having to manage separate site trees.
BSD 3-Clause "New" or "Revised" License
91 stars 109 forks source link

ENH Add ability to ignore missing fields #830

Closed lekoala closed 5 months ago

lekoala commented 5 months ago

Description

SHOW FULL FIELDS are costly queries. Maybe it's not necessary to do this on every request

Manual testing steps

Using debugbar, you can check the queries With this new feature, this prevents all queries: SHOW FULL FIELDS IN xxx

Issues

https://github.com/tractorcow-farm/silverstripe-fluent/issues/828

Pull request checklist

tractorcow commented 5 months ago

The fix I've proposed at https://github.com/tractorcow-farm/silverstripe-fluent/pull/831 is better since it precisely enables the check only when necessary, rather than relying on the site owner to manually enable it.

tractorcow commented 5 months ago

@lekoala can you let me know if you are happy for me to merge my fix over yours?

lekoala commented 5 months ago

@tractorcow yes please do :-) your approach is better

tractorcow commented 5 months ago

Fixed with https://github.com/tractorcow-farm/silverstripe-fluent/pull/831