]> git.wh0rd.org - tt-rss.git/commit - classes/rssutils.php
Keep local cached images fresh if file exists.
authorJustAMacUser <donotreply@example.org>
Fri, 14 Aug 2015 23:49:41 +0000 (19:49 -0400)
committerJustAMacUser <donotreply@example.org>
Sun, 16 Aug 2015 04:33:33 +0000 (00:33 -0400)
commit4a27966e78407d4482de5d1a70093930f9eb8b85
tree9ca4a625d9f07fde244783d77a8ea3a1c4250d64
parent98b0729850d36f07d12661d91b06b8057a4e3aed
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.
include/rssfuncs.php