-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NFR]: Global variable for reusable in ORM #14788
Comments
The offer is good, but dangerous |
why dangerous? |
@zak-wojtek77 A very large amount of data from the DBMS may get into the cache. If you do this thing, you should turn it off by default. |
I agree with @TimurFlush. This can be abused if set to |
Closing in favor of #14608 Please vote for this feature there |
Of course by default it should be 'false'. |
In every model every relationship does not use cache. If I want to use cache I have to write 'reusable' => true:
My proposal: add new global option:
phalcon..orm.reusable = false
if I don't write in relationship "'reusable' => true" but I write
phalcon..orm.reusable = true
then will be the same like I write "'reusable' => true".
Priority of global variable would be less than option "reusable" written in relationship.
The text was updated successfully, but these errors were encountered: