示例#1
0
文件: views.py 项目: vivihuang/polio
def refresh_metadata(request):
    '''
    This is what happens when you click the "refresh_metadata" button
    '''

    indicator_cache_data = cache_tasks.cache_indicator_abstracted()
    user_cache_data = cache_tasks.cache_user_abstracted()
    campaign_cache_data = cache_tasks.cache_campaign_abstracted()
    region_tree_cache_data = cache_tasks.cache_region_tree()

    return HttpResponseRedirect(reverse('datapoints:cache_control'))
示例#2
0
def refresh_metadata(request):
    '''
    This is what happens when you click the "refresh_metadata" button
    '''

    indicator_cache_data = cache_tasks.cache_indicator_abstracted()
    user_cache_data = cache_tasks.cache_user_abstracted()
    campaign_cache_data = cache_tasks.cache_campaign_abstracted()
    region_tree_cache_data = cache_tasks.cache_region_tree()

    return HttpResponseRedirect(reverse('datapoints:cache_control'))
示例#3
0
文件: views.py 项目: unicef/polio
def refresh_metadata(request):
    '''
    This is what happens when you click the "refresh_metadata" button
    '''

    indicator_cache_data = cache_tasks.cache_indicator_abstracted()
    user_cache_data = cache_tasks.cache_user_abstracted()
    campaign_cache_data = cache_tasks.cache_campaign_abstracted()
    region_tree_cache_data = cache_tasks.cache_region_tree()
    source_object_cache = cache_tasks.update_source_object_names()

    return HttpResponseRedirect(reverse('datapoints:manage_data_refresh'))