You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply the problem begins from [this issuge](https://github.com/laravel/framework/issues/9276).
37
+
38
+
39
+
Currently the eloquent model class contains a cache strategy for getters which first fetches all class methods and runs a loop on them filtering them by a regular expression.
40
+
This occurs [only once](https://github.com/laravel/framework/blob/5.1/src/Illuminate/Database/Eloquent/Model.php#L3207) per unique eloquent final object.
41
+
The getter cache container is only filled up with the [processed snake case attribute key](https://github.com/laravel/framework/blob/5.1/src/Illuminate/Database/Eloquent/Model.php#L3238).
42
+
43
+
Each time a new model class is created for first time a loop with 50 to 100 iterations with processing a regular expression is run.
44
+
45
+
Wouldn't it be cool to have something like ```php artisan eloquent:cache``` for this ?
46
+
47
+
If you use *OPCACHE* in your PHP installation, this class will not use I/O for each script run, as opcache loads code into memory.
0 commit comments