Page MenuHomePhabricator

Squid cache not being cleared for thumbs when updating new version of image
Closed, ResolvedPublic

Description

Author: lexein-w

Description:
Screengrab of file page, including history and thumbnails as rendered.

Thumbnail images which are kept on file pages, in the second column of table "File history", are "squashed" when created from wide, short images.

Example: http://en.wikipedia.org/wiki/File:PharmaSecure_Logo_TM.jpg

The thumbnail created from the 320x226 (6k) version of the image was correct.
Border reduction was requested, so I did that, starting from the 4961x3508 (1.69 MB) master file. This produced a in 320x87 (20k) image, which when uploaded, produced a "squashed"

This appears to be because a new thumbnail was not actually created. Instead, the previous thumbnail was used:

https://upload.wikimedia.org/wikipedia/en/thumb/d/dc/PharmaSecure_Logo_TM.jpg/120px-PharmaSecure_Logo_TM.jpg - note borders still present

and was sized within the <img> tag, making it look squished.


Version: 1.21.x
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=41130
https://bugzilla.wikimedia.org/show_bug.cgi?id=48927

Attached:

File-PharmaSecure_Logo_TM.jpg_page_capture.png (2×997 px, 150 KB)

Details

Reference
bz42963

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:04 AM
bzimport set Reference to bz42963.
bzimport added a subscriber: Unknown Object (MLST).

Squid cache did not get purged for the thumbnail. Furthermore action=purging the image page does not purge the thumb.

This can be verified since https://upload.wikimedia.org/wikipedia/en/thumb/d/dc/PharmaSecure_Logo_TM.jpg/120px-PharmaSecure_Logo_TM.jpg?newUrlSoSquidDoesNotRecognize is the new version of the image.

lexein-w wrote:

ADD-ON to this bug? Related cached main image problem. Attempted reverts, and fresh uploads, do not update the main image . See example:
http://en.wikipedia.org/wiki/File:Nokia_City_Lens_Screen.jpg

Still showing old, smaller, 320x191, cached image:
http://upload.wikimedia.org/wikipedia/en/1/14/Nokia_City_Lens_Screen.jpg

Should be using new 478x286 image.

(In reply to comment #2)

ADD-ON to this bug? Related cached main image problem. Attempted reverts, and
fresh uploads, do not update the main image . See example:
http://en.wikipedia.org/wiki/File:Nokia_City_Lens_Screen.jpg

Still showing old, smaller, 320x191, cached image:
http://upload.wikimedia.org/wikipedia/en/1/14/Nokia_City_Lens_Screen.jpg

Should be using new 478x286 image.

I'm getting the 478x286 image from both north america and europe caching servers.


https://upload.wikimedia.org/wikipedia/en/thumb/d/dc/PharmaSecure_Logo_TM.jpg/120px-PharmaSecure_Logo_TM.jpg

  • note borders still present

I believe the correct version is being served from europe caching servers, but not from north american ones. Making this a dupe of bug 41130

  • This bug has been marked as a duplicate of bug 41130 ***
Gilles triaged this task as Unbreak Now! priority.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Needs Triage.Dec 4 2014, 11:23 AM