edit-task
Home
Up
Delete
Task Name:
Task 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)
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h2>[-previously-]</h2> <ol> <li><strong>] <a href="http://sospep.com/view/task?id=2827" target="_blank">feature idea 3250</a></strong></li> <ol> <li>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. </li> </ol></ol> <h2>[-currently-]</h2> <ol> <li><strong>] HAVE = </strong><strong>[2013-09-17] PAGE view/article is pulling the news feed on each page view for each user,</strong> there is a also a bit of a delay (up to 5 sec) on getting some of the feeds (ex language javascript), </li> <ol> <li>] cache the pulled news feed as a json object on the server</li> </ol> <li><strong>] WANT = </strong></li> <ol> <li>] if the file has been cached then use the cached file VERSUS pulling the feed again</li> <li>] if the file has NOT been cached then pull the feed and create a cached object</li> <li>] if the file is > 24 hours old, pull the feed and create</li> </ol> <li><strong>[2013-09-16] i] qry = how to have server automically generate page</strong></li> <ol> <li>] thinking will need to have the server auto generate and build page using ??? but </li> <li>x] check for file exists upon request for page, if it doesnt then build it </li> </ol> <li><strong>[2013-09-dd] PRB with yahoo YQL - alias qry functionality</strong></li> <ol> <li>] RESOLVED by yahoo 2013-mm-dd </li> </ol> <li><strong>[2013-10-04] pseudo code</strong></li> <ol> <li>if (page.htm && page.htm.date > today - 1)</li> <ol> <li>get page htm</li> </ol> <li>else</li> <ol> <li>get json</li> <li>build page</li> </ol></ol> <li><strong>[2013-10-05][server-side]</strong></li> <ol> <li>x] file exists - </li> <li>x] file created - DateTime dt = System.IO.File.GetLastWriteTime(path)) - currentTime</li> <li>x] date math - fileCreated - currentTime, return age in hours</li> <li>x] using web client to pull json from provider</li> <li>x] build file logic ( if !exists OR age > x hrs )</li> </ol> <li><strong><strong>[2013-10-07]</strong>[client-side]</strong></li> <ol> <li>x] using jq to pull json from 'file' VS from qry</li> </ol> <li><strong><strong><strong>[2013-10-07] </strong></strong>> i] FEA 3250 -010 cached-pages</strong></li> <ol> <li>x] 2838 - logic for read file OR create file, </li> <li>x] reading from file VS yql qry, </li> <li>] cache page for newsfeed, read cached page VS getJSON()</li> </ol> <li><strong><strong><strong>[2013-10-08]</strong></strong>] 2.0 | fea 3250 - working again</strong></li> <ol> <li>x] more refactoring - </li> <li>x] went back to pulling the json object from yql in a script, this eliminated the getJSON call in document ready()</li> <li>+] NEW PRB - duplication - if no feed and default is used </li> <li>*] saved 'code snippets' in local </li> <li>x] 1791 published as rev-002 in BK versions 2013-10</li> </ol> <li><strong>x</strong>] <strong>PRB yql-console qry alias - NF</strong> cant access aliased to edit ] exisiting qry alias in console or ] create qry function <ol> <li>x] posted <a href="https://developer.yahoo.com/forum/YQL/are-there-any-issues-with-create/1379488149230-e16ba9af-b19a-42b4-98c7-c88382800201" target="_blank">question</a> in forum re: issues with qry aliases</li> </ol></li> </ol> <h2>[-next-]</h2> <ol> <li><strong>] get newsfeed.json -</strong></li> <ol> <li>] yql/dons/tech-news, yql/dons/news-language-javascript, yql/dons/news-nascar</li> <li>] process (tech_news() )- a js method that is passed as the callback function in the yql rest</li> <li>] script timeout (refresh)</li> </ol> <li><strong>] display newsfeed</strong></li> <ol> <li>] get newsfeed()</li> <li>] function gets page from cache for each "book"</li> <li>] ? server page execute</li> </ol></ol>