changeset 121:7c7f7eca51ae

Don't re-cache all pages by default with some CLI commands.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 21 Nov 2013 21:35:13 -0800
parents e2df85f9b23d
children 17188020e87e
files manage.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/manage.py	Tue Nov 19 23:07:50 2013 -0800
+++ b/manage.py	Thu Nov 21 21:35:13 2013 -0800
@@ -34,18 +34,18 @@
 
 
 @manager.command
-def reset():
+def reset(cache=False):
     """ Re-generates the database and the full-text-search index.
     """
-    wiki.reset()
+    wiki.reset(cache_ext_data=cache)
 
 
 @manager.command
-def update(url=None):
+def update(url=None, cache=False):
     """ Updates the database and the full-text-search index with any
         changed/new files.
     """
-    wiki.update(url)
+    wiki.update(url, cache_ext_data=cache)
 
 
 @manager.command