Save commented out save-cache-on-fetch used for debugging.

This commit is contained in:
Jim Miller 2017-09-11 15:13:58 -05:00
parent 6980f0b990
commit 40739b87d2

View file

@ -27,6 +27,7 @@ import urllib
import urllib2 as u2
import urlparse as up
import cookielib as cl
import pickle
try:
from google.appengine.api import apiproxy_stub_map
@ -916,7 +917,9 @@ class Configuration(ConfigParser.SafeConfigParser):
def _set_to_pagecache(self,cachekey,data,redirectedurl):
if self.use_pagecache:
self.get_pagecache()[cachekey] = (data,redirectedurl)
# with open('global_cache','wb') as jout:
# pickle.dump(self.pagecache,jout)
# self.cookiejar.save('global_cookies')
## website encoding(s)--in theory, each website reports the character
## encoding they use for each page. In practice, some sites report it