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/picture_modify.php

    r25425 r25975  
    8383    explode(',', calculate_permissions($user['id'], $user['status']))
    8484    );
    85  
     85
    8686  foreach ($authorizeds as $category_id)
    8787  {
     
    176176  move_images_to_categories(array($_GET['image_id']), $_POST['associate']);
    177177
     178  invalidate_user_cache();
     179
    178180  // thumbnail for albums
    179181  if (!isset($_POST['represent']))
     
    181183    $_POST['represent'] = array();
    182184  }
    183  
     185
    184186  $no_longer_thumbnail_for = array_diff($represent_options_selected, $_POST['represent']);
    185187  if (count($no_longer_thumbnail_for) > 0)
     
    200202
    201203  $represent_options_selected = $_POST['represent'];
    202  
     204
    203205  $page['infos'][] = l10n('Photo informations updated');
    204206}
     
    321323;';
    322324  list($row['nb_rates']) = pwg_db_fetch_row(pwg_query($query));
    323  
     325
    324326  $intro_vars['stats'].= ', '.sprintf(l10n('Rated %d times, score : %.2f'), $row['nb_rates'], $row['rating_score']);
    325327}
    326328
    327329$template->assign('INTRO', $intro_vars);
    328  
     330
    329331
    330332if (in_array(get_extension($row['path']),$conf['picture_ext']))
Note: See TracChangeset for help on using the changeset viewer.