Mercurial > wikked
comparison manage.py @ 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 | a65cedc183d6 |
| children | ac6166453d77 |
comparison
equal
deleted
inserted
replaced
| 120:e2df85f9b23d | 121:7c7f7eca51ae |
|---|---|
| 32 print "[users]" | 32 print "[users]" |
| 33 print "%s = %s" % (username, password) | 33 print "%s = %s" % (username, password) |
| 34 | 34 |
| 35 | 35 |
| 36 @manager.command | 36 @manager.command |
| 37 def reset(): | 37 def reset(cache=False): |
| 38 """ Re-generates the database and the full-text-search index. | 38 """ Re-generates the database and the full-text-search index. |
| 39 """ | 39 """ |
| 40 wiki.reset() | 40 wiki.reset(cache_ext_data=cache) |
| 41 | 41 |
| 42 | 42 |
| 43 @manager.command | 43 @manager.command |
| 44 def update(url=None): | 44 def update(url=None, cache=False): |
| 45 """ Updates the database and the full-text-search index with any | 45 """ Updates the database and the full-text-search index with any |
| 46 changed/new files. | 46 changed/new files. |
| 47 """ | 47 """ |
| 48 wiki.update(url) | 48 wiki.update(url, cache_ext_data=cache) |
| 49 | 49 |
| 50 | 50 |
| 51 @manager.command | 51 @manager.command |
| 52 def list(): | 52 def list(): |
| 53 """ Lists page names in the wiki. | 53 """ Lists page names in the wiki. |
