Cache stopped working: fix

58 views
Skip to first unread message

Jeriko

unread,
Nov 19, 2011, 8:24:10 PM11/19/11
to flickrRSS
It seems that Flickr is using a new host to store the smaller
versions, farmX.staticflickr.com instead of farmX.static.flickr.com.
This means that the cache in flickRSS stopped working. Here's a fix:

Open flickrss.php, look for line 178, which looks like this:
preg_match('<http://farm[0-9]{0,3}\.static.flickr\.com/\d+?\/([^.]*)
\.jpg>', $img_to_cache, $flickrSlugMatches);

Change it to this:
preg_match('<http://farm[0-9]{0,3}\.static.?flickr\.com/\d+?\/([^.]*)
\.jpg>', $img_to_cache, $flickrSlugMatches);

And that's it. Should be working again. Hope this helps.

Tiago Celestino

unread,
Dec 12, 2011, 2:40:20 PM12/12/11
to flickrRSS
This is fail.

Only update plugin with new version.

Reply all
Reply to author
Forward
0 new messages