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
A quick look at the source reveals that build_file tries a lookup with Rails.cache, but it doesn't look like the file ever gets saved to the cache in the normal read case. Of course, that is beside the point of whether it makes sense for the accessor to create a new object every time, even if some of it is cached.
The text was updated successfully, but these errors were encountered:
It appears that the accessor method generated by
has_uploadcare_file
creates a newUploadcare::Rails::File
instance every time it is called.This means that calling
load_data
doesn't appear to have any effect unless the result is manually stored.Given:
This behavior at the console is surprising:
A quick look at the source reveals that
build_file
tries a lookup withRails.cache
, but it doesn't look like the file ever gets saved to the cache in the normal read case. Of course, that is beside the point of whether it makes sense for the accessor to create a new object every time, even if some of it is cached.The text was updated successfully, but these errors were encountered: