]> git.wh0rd.org - tt-rss.git/commitdiff
Merge branch 'keep-cached-images-fresh' into 'master'
authorAndrew Dolgov <cthulhoo@gmail.com>
Sun, 16 Aug 2015 06:40:59 +0000 (09:40 +0300)
committerAndrew Dolgov <cthulhoo@gmail.com>
Sun, 16 Aug 2015 06:40:59 +0000 (09:40 +0300)
Keep local cached images fresh if file exists.

Updates the cache_images() function to `touch` images if the file exists already. Some sites (e.g. news) re-use stock images and this change updates the local file's modified time every time the image is referenced in new articles. This should prevent the local file from being expired/deleted only to be re-cached later on.

See merge request !9


Trivial merge