DescriptionMakeRequest 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. #MessagesTotal messages: 4
|