- 🇧🇬Bulgaria vflirt
I have stumbuled on this issue as we have some code that does not properly populate the file_usage table which results in cache not being cleared. I am updating the patch for latest dev.
FileEntity::getCacheTags returns an empty array. This breaks the cache invalidation for File entities in Views for example.
IRC log
<webflo> berdir: http://cgit.drupalcode.org/file_entity/tree/src/Entity/FileEntity.php#n500 i think FileEntity:: getCacheTags returns no cache tag. i think this breaks tag-based cache invalidation in views.
<webflo> i use field based rendering in views, no rendered entity
<berdir> webflo: hm, yes, that is possible...
<berdir> webflo: tricky. that optimization is quite important for us/anyone who has lots and lots of files on overview pages. maybe we could make it configurable? but then you still have to know that you have to change that settings
<berdir> webflo: maybe we can somehow apply the logic from \Drupal\file_entity\Entity\FileEntityViewBuilder to it?
Needs work
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I have stumbuled on this issue as we have some code that does not properly populate the file_usage table which results in cache not being cleared. I am updating the patch for latest dev.