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

Issue 26062: refactor BasicRemoteContent for cache (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by panjie.pan
Modified:
16 years, 1 month ago
Reviewers:
panjie, chabotc, shindig-dev, chabotc1
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk
Visibility:
Public.

Description

MakeRequest has 3 kinds of fetching remote content: 'SIGNED', 'OAUTH' and 'NONE'. SIGNED and OAUTH contents are not cached. I refactored those function and use BasicRemoteContent->fetch in MakeRequestHandler. BasicRemoteContent->fetch will cache all remote content fetchings. I want to make BasicRemoteContent the same as DefaultRequestPipeline in Java. So all remote content request will be handled by BasicRemoteContent and caching/invalidating seems much easier. For making CacheStorage a singleton especially for CacheStorageMemcache, I kinda think that CacheStorage for each prefix should be different. Or we can make CacheStorageMemcache::memcache a singleton. I added error_report(E_ALL | E_STRICT) for unittest which exposed failures and I will fix those in next patches.

Patch Set 1 #

Patch Set 2 : updated #

Patch Set 3 : patch for SigningFetcher.php and OAuthFetcher.php #

Patch Set 4 : updated. I also found a bug for constructor change of BasicSecurityToken. I will fix it soon. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
php/src/gadgets/oauth/OAuthFetcher.php View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4
panjie.pan
16 years, 6 months ago (2009-03-13 08:08:17 UTC) #1
panjie.pan
updated
16 years, 6 months ago (2009-03-16 06:07:31 UTC) #2
panjie.pan
patch for SigningFetcher.php and OAuthFetcher.php
16 years, 6 months ago (2009-03-17 03:07:57 UTC) #3
panjie.pan
16 years, 6 months ago (2009-03-17 07:08:40 UTC) #4
updated. I also found a bug for constructor change of BasicSecurityToken. I will
fix it soon.
Sign in to reply to this message.

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