예제 #1
0
파일: views.py 프로젝트: lskdev/commcare-hq
def _clear_caches_for_dynamic_toggle(toggle_meta):
    # note: this is rather coupled with python property internals
    DynamicallyPredictablyRandomToggle.randomness.fget.clear(toggle_meta)
    # also have to do this since the toggle itself is cached
    all_toggles.clear()
예제 #2
0
파일: views.py 프로젝트: dimagi/commcare-hq
def _clear_caches_for_dynamic_toggle(static_toggle):
    # note: this is rather coupled with python property internals
    DynamicallyPredictablyRandomToggle.randomness.fget.clear(static_toggle)
    # also have to do this since the toggle itself is cached
    all_toggles.clear()