Mikołaj Różański
TCTwill CMS
•Created by Mikołaj Różański on 2/6/2024 in #👊support
"astrotomic/laravel-translatable" n+1 queries
I've got a package issue which is composer required by twill.
800+ queries on a model only getting one locale at a time based on the /en/ suffix. I have checked and this is the only item showing up in debug tab generating this.
When i switch models to call directly from database without twill the amount of queries returned is 32 - and this is getting 388 record items on a foreach loop.
Culprit line: /vendor/astrotomic/laravel-translatable/src/Translatable/Translatable.php:161
Has anyone experienced this when calling any Twill models and managed to solve the amount of queries in this package?
11 replies
TCTwill CMS
•Created by Mikołaj Różański on 9/7/2023 in #👊support
Adding role and permission for single module
Hi, I have investigated the documentation provided here: https://twillcms.com/docs/user-management/advanced-permissions.html#content-level-role
It's not particularly understood.
I am looking to add a new role "Translator" to the CMS which will only access one module "systemtexts".
6 replies