Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(164)

Issue 3260041: CC: enable server-driven gadget metadata caching. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by mhermanto
Modified:
15 years, 2 months ago
Reviewers:
zhoresh, dev-remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Cache is busted according to what the server says (currently, fixed to shindig.cache.xml.refreshInterval), with some adjustments to differences between server/client absolute times. Before, this cache was infinite (ie: as long container instance lives). Cache will not be busted for navigated and preloaded gadgets. For simplicity, gadgets need to be closed (unnavigated) and/or unloaded (if preloaded) for its cache to be possibly evicted. Cache busting is particularly needed for long-live AJAX container pages (ie: ones that don't refresh pages).

Patch Set 1 : Added unit tests #

Total comments: 2

Patch Set 2 : Update patch #

Patch Set 3 : Update patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -43 lines) Patch
features/src/main/javascript/features/container/constant.js View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
features/src/main/javascript/features/container/container.js View 1 2 7 chunks +67 lines, -15 lines 0 comments Download
features/src/main/javascript/features/container/service.js View 1 2 4 chunks +60 lines, -22 lines 0 comments Download
features/src/main/javascript/features/container/util.js View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
features/src/test/javascript/features/container/container_test.js View 1 1 chunk +84 lines, -2 lines 0 comments Download
features/src/test/javascript/features/container/service_test.js View 1 1 chunk +109 lines, -2 lines 0 comments Download

Messages

Total messages: 6
mhermanto
15 years, 3 months ago (2010-11-22 22:33:45 UTC) #1
mhermanto
Added unit tests
15 years, 3 months ago (2010-11-25 01:07:39 UTC) #2
zhoresh
http://codereview.appspot.com/3260041/diff/4001/features/src/main/javascript/features/container/service.js File features/src/main/javascript/features/container/service.js (right): http://codereview.appspot.com/3260041/diff/4001/features/src/main/javascript/features/container/service.js#newcode120 features/src/main/javascript/features/container/service.js:120: + currentTimeMs; This calculation ignores the time it took ...
15 years, 2 months ago (2010-12-07 19:16:59 UTC) #3
mhermanto
Update patch
15 years, 2 months ago (2010-12-07 20:49:41 UTC) #4
mhermanto
On Tue, Dec 7, 2010 at 11:16 AM, <zhoresh@gmail.com> wrote: > > > http://codereview.appspot.com/3260041/diff/4001/features/src/main/javascript/features/container/service.js > ...
15 years, 2 months ago (2010-12-07 20:49:48 UTC) #5
zhoresh
15 years, 2 months ago (2010-12-07 20:54:40 UTC) #6
LGTM (keep in mind I am a js beginner)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b