task

[-previously-]

  1. feature idea 3250
    1. overview article describing what this feature 'news tab' is and what it does, it breifly outlines our plan on how we are going to implement it.  

[-currently-]

  1. ] HAVE = [2013-09-17] PAGE view/article is pulling the news feed on each page view for each user, there is a also a bit of a delay (up to 5 sec) on getting some of the feeds (ex language javascript), 
    1. ] cache the pulled news feed as a json object on the server
  2. ] WANT = 
    1. ] if the file has been cached then use the cached file VERSUS pulling the feed again
    2. ] if the file has NOT been cached then pull the feed and create a cached object
    3. ] if the file is > 24 hours old, pull the feed and create
  3. [2013-09-16] i] qry = how to have server automically generate page
    1. ] thinking will need to have the server auto generate and build page using ??? but 
    2. x] check for file exists upon request for page, if it doesnt then build it 
  4. [2013-09-dd] PRB with yahoo YQL - alias qry functionality
    1. ] RESOLVED by yahoo 2013-mm-dd 
  5. [2013-10-04] pseudo code
    1. if (page.htm && page.htm.date > today - 1)
      1. get page htm
    2. else
      1. get json
      2. build page
  6. [2013-10-05][server-side]
    1. x] file exists -  
    2. x] file created -  DateTime dt = System.IO.File.GetLastWriteTime(path)) - currentTime
    3. x] date math - fileCreated - currentTime, return age in hours
    4. x] using web client to pull json from provider
    5. x] build file logic ( if !exists OR age > x hrs )
  7. [2013-10-07][client-side]
    1. x] using jq to pull json from 'file' VS from qry
  8. [2013-10-07] > i] FEA 3250 -010 cached-pages
    1. x] 2838 - logic for read file OR create file, 
    2. x] reading from file VS yql qry,  
    3. ] cache page for newsfeed, read cached page VS getJSON()
  9. [2013-10-08]] 2.0 | fea 3250 - working again
    1. x] more refactoring - 
    2. x] went back to pulling the json object from yql in a script, this eliminated the getJSON call in document ready()
    3. +] NEW PRB - duplication - if no feed and default is used 
    4. *] saved 'code snippets' in local 
    5. x] 1791 published as rev-002 in BK versions 2013-10
  10. xPRB yql-console qry alias - NF cant access aliased to edit ] exisiting qry alias in console or ] create qry function  
    1. x] posted question in forum re: issues with qry aliases

[-next-]

  1. ] get newsfeed.json -
    1. ] yql/dons/tech-news, yql/dons/news-language-javascript, yql/dons/news-nascar
    2. ] process (tech_news() )- a js method that is passed as the callback function in the yql rest
    3. ] script timeout (refresh)
  2. ] display newsfeed
    1. ] get newsfeed()
    2. ] function gets page from cache for each "book"
    3. ] ? server page execute
Details Photos Edit more

Details

ID: 2838

NAME: 3250-009-news-tab-use-CACHEd-PAGEs

DESCRIPTION: PERFORMANCE - CACHE-PAGES-GENERATED - x] server will cache the newsfeed items page for each feed, ] subsequent page views will then access the cached page, ] the cached page will expire after a preset amount of time (24h)

START DATE TIME: 2013-09-19 07:00:00

EST DURATION: 04:00:00

END DATE TIME: 2013-09-19 11:00:00

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities