πŸ‡ΊπŸ‡ΈUnited States @dinaish20

San Francisco
Account created on 14 November 2019, about 5 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States dinaish20 San Francisco

Thanks @catch & @dshetty for pointing out - issue was with old version of image module, which was always flushing cache tags no matter image path was provided or not.

Looks like its fix with drupal 10.3.6 which we are planning to upgrade to soon.

Thanks all again.

πŸ‡ΊπŸ‡ΈUnited States dinaish20 San Francisco

Hi Cilefen

I think issue is in core class (Drupal\image\Entity\ImageStyle::flush), contributed modules are just calling the function
For example media_entity_file_replace.module calls image_path_flush method of image.module which calls the above mentioned flush method.

I am not sure if I can make it simpler but will give a try

1) Create some image styles and associate with an image
2) Add that image to any content which is viewed as page
2) Edit (replace) the image through media_entity_file_replace module
3) Notice what all cache tags are getting flushed
4) Notice page which have those cache tags associated is also having its cache flushed.
5) Also notice similar page with different image having flushed its cache too as it had same cache tags associated.

So instead of flushing just the image being edited it flushes all styles associated with image

Here is the real data
I have a category page which has these cache tags
config:image.style.brc_redesign_category_thumb_180_x_180
config:image.style.brc_redesign_category_thumb_180x180_2x
config:responsive_image.styles.brc_redesign_category_thumb
file:197676
file:197691
media:538736
media:539806
media_view
node:277151
node:28461
node_view
paragraph:449016
taxonomy_term:11906
taxonomy_term_list
taxonomy_term_view
user:161

I have a image in Drupal which is not part of above content when I edit the image , following cache tags gets cleared
+-----------------+--------------+------------------------------------------------------------------------------+
| Type | State | Expression |
+-----------------+--------------+------------------------------------------------------------------------------+
| Tag | New | file:242876 |
| Tag | New | config:image.style.video_embed_wysiwyg_preview |
| Tag | New | config:image.style.thumbnail |
| Tag | New | config:image.style.slick_media |
| Tag | New | config:image.style.media_library |
| Tag | New | config:image.style.max_650x650
| Tag | New | config:image.style.brc_redesign_2_col_578x325_2x |
| Tag | New | config:image.style.brc_redesign_adhoc_2_col_1_1 |
| Tag | New | config:image.style.brc_redesign_adhoc_2_col_1_1_2x |
| Tag | New | config:image.style.brc_redesign_adhoc_3_col_3_2 |
| Tag | New | config:image.style.brc_redesign_adhoc_3_col_3_2_2x |
| Tag | New | config:image.style.brc_redesign_category_thumb_180_x_180 |
| Tag | New | config:image.style.brc_redesign_category_thumb_180x180_2x |
| Tag | New | config:image.style.brc_redesign_feature_single_527_x_351_3_2

Note above list has 2 tags common with my page which causes this issue.

So if I comment that code which I mention in proposed solution, it only clears below cache tags, which is sufficient I think to clear this image's flush on the page where this image is.

Type | State | Expression |
+-----------------+--------------+------------------------------------------+
| Tag | New | file_list |
| Tag | New | file:242871 |
| Tag | New | file:242878 |
| Tag | New | media_list |
| Tag | New | media_list:image |
| Tag | New | media:556191 |
| Tag | New | local_task

Hope fully I did explain it better.
Let me know if need to give any other details

Thanks

πŸ‡ΊπŸ‡ΈUnited States dinaish20 San Francisco

@joseph.olstad

Use case is simple.
Global content and its translations both are being edited at the same time.
And business wanted a way to bulk publish all so this module comes into picture.
So even if English or any other translation is published first, the remaining translations or global should still retain its changes.
It works find when a node without its translation is being edited and bulk publish pushed to live smoothly.

Issue with 2.0 is - it will move translations which are still being edited to live when only the global or English is published. I saw that configuration was introduced in 3.x so opted for that.

Let me know if I didn't explain it right.

Production build 0.71.5 2024