index.js
function pushFlickrJson(flickrJson){
  if(!enabledCache)return;
  var isMatch     = false;
  var filterJson  = filterElement(flickrJson);
  
  for(var i = 0; i < cacheJson.length; i++){
    if(cacheJson[i].fl.photo.id == flickrJson.photo.id){
      cacheJson[i].fl      = filterJson;
      isMatch              = true;
    }
  }
  if(!isMatch)cacheJson.push({"fl":filterJson, "expires":0 });
}
function pushFlickrJson(flickrJson){
  if(!enabledCache)return;
  var isMatch     = false;
  var filterJson  = filterElement(flickrJson);
  
  for(var i = 0; i < cacheJson.length; i++){
    if(cacheJson[i].fl.photo.id == flickrJson.photo.id){
      cacheJson[i].fl      = filterJson;
      isMatch              = true;
    }
  }
  if(!isMatch)cacheJson.push({"fl":filterJson, "expires":0 });
}
push flickr photos