Changeset b77337f478f210a344e77c7eab7fff53c7544472


Ignore:
Timestamp:
30.07.2013 23:05:22 (8 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0
Children:
c1a31feeac755a213ec63b54d8108014dfcb6bb5
Parents:
fb4d262255f521f30b1b74dce06d6d114f79fcd8
git-author:
Stanislaw Klekot <dozzie@…> (30.07.2013 23:05:22)
git-committer:
Stanislaw Klekot <dozzie@…> (30.07.2013 23:05:22)
Message:

Added storing JSON dump with macro results in cache.

I don't expect it to be heavily used, but it could be handy from time to time
to have the call results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/wiki/views.py

    rab0dea rb77337  
    118118 
    119119  try: 
    120     return resolve_macros(tree, load_macro) 
     120    macro_calls = {} 
     121    result = resolve_macros(tree, load_macro, macro_calls) 
     122    cache.store('macros.json', macro_calls) 
     123    return result 
    121124  except Exception, e: 
    122125    e_type    = e.__class__.__name__ 
Note: See TracChangeset for help on using the changeset viewer.