Ignore:
Timestamp:
Dec 16, 2013, 9:18:56 PM (10 years ago)
Author:
rvelices
Message:

invalidate_user_cache fix in web service method + do not invalidate user cache on every page hit on album list, photo etc ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_list.php

    r25425 r25975  
    116116  $_SESSION['page_infos'] = array(l10n('Virtual album deleted'));
    117117  update_global_rank();
     118  invalidate_user_cache();
    118119
    119120  $redirect_url = get_root_url().'admin.php?page=cat_list';
     
    121122  {
    122123    $redirect_url.= '&parent_id='.$_GET['parent_id'];
    123   } 
     124  }
    124125  redirect($redirect_url);
    125126}
    126127// request to add a virtual category
    127 else if (isset($_POST['submitAdd']))
     128elseif (isset($_POST['submitAdd']))
    128129{
    129130  $output_create = create_virtual_category(
     
    132133    );
    133134
     135  invalidate_user_cache();
    134136  if (isset($output_create['error']))
    135137  {
     
    142144}
    143145// save manual category ordering
    144 else if (isset($_POST['submitManualOrder']))
     146elseif (isset($_POST['submitManualOrder']))
    145147{
    146148  asort($_POST['catOrd'], SORT_NUMERIC);
     
    149151  $page['infos'][] = l10n('Album manual order was saved');
    150152}
    151 else if (isset($_POST['submitAutoOrder']))
     153elseif (isset($_POST['submitAutoOrder']))
    152154{
    153155  $query = '
Note: See TracChangeset for help on using the changeset viewer.