Many browsers will cache the image file on the local host. For instance when new profile picture is uploaded, browser might display the old version. Same goes with other content images as well.

This patch adds timestamp as a parameter to each urls created. It is similar as giving the $bypass_browser_cache parameter value 'true', but more efficient. Creation time does not change unless the file has been changed.

Comments

frankcarey’s picture

+1 for this. @drewish, you were worried about the stat() calls, but at least there is some caching. Perhaps this would work well as an optional functionality? http://php.net/manual/en/function.filemtime.php

chuckbar77’s picture

subscribing

YK85’s picture

fizk’s picture

Issue tags: +ImageCache 3

Marking as ImageCache 3.x Todo.

fizk’s picture

Category: task » feature
Status: Needs review » Closed (duplicate)
fizk’s picture

Issue tags: -ImageCache 3

Removing tags.