registerMediaConversions runs everytime a Media models loads - unnecessary? #1883
Unanswered
martinhschei
asked this question in
General
Replies: 2 comments
-
The "thumb" conversion is created when the file is uploaded so i think it's unnecessary to run this method each time the model loads if the conversation exists already. The thumbnail is not updated when this methods runs if it already exists. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@martinhschei |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this trait which i add to my models. As you can see there is some logic concerning video files.
My problem with this is that registerMediaConversions runs everytime i load a media model and for the media archive in my app this could be 100+ videos on a page load. This is kinda slow.
Have i done something wrong or is it correct that registerMediaConversions runs each time a model is loaded?
Beta Was this translation helpful? Give feedback.
All reactions