[library-web] cancel some cache changes for external documents
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] cancel some cache changes for external documents
- Date: Thu, 30 Jan 2014 14:34:30 +0000 (UTC)
commit 5dfc451900cbb80bd5474205674de55dcc4bd85d
Author: Frédéric Péters <fpeters 0d be>
Date: Thu Jan 30 14:34:08 2014 +0000
cancel some cache changes for external documents
src/document.py | 2 +-
src/overlay.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/document.py b/src/document.py
index fbb5920..96bb8ca 100644
--- a/src/document.py
+++ b/src/document.py
@@ -277,7 +277,7 @@ class RemoteDocument(Document):
# can be "watched" for changes
if self.overlay.find('local').attrib.get('nocache'):
return app.download(href, use_cache=False)
- return app.download(href, use_cache=True)
+ return app.download(href)
def create_element(self, parent, language, original_language = None):
if self.cancelled:
diff --git a/src/overlay.py b/src/overlay.py
index 31ed5fc..b8a9fb9 100644
--- a/src/overlay.py
+++ b/src/overlay.py
@@ -123,7 +123,7 @@ class Overlay:
documents_node = self.tree.find('documents')
for extra in self.tree.findall('/documents/extrawikidocs'):
href = extra.find('href').text
- content = app.download(href + '?action=print', use_cache=True)
+ content = app.download(href + '?action=print', use_cache=False)
# parse the wiki page and get all links in content
parser = html5lib.HTMLParser()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]