Ignore:
Timestamp:
Dec 17, 2011, 7:14:43 PM (9 years ago)
Author:
patdenice
Message:

Delete cache automaticaly if height or margin has changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GThumb/main.inc.php

    r12751 r12758  
    3939  $user['nb_image_page'] = $conf['GThumb']['nb_image_page'];
    4040  $page['nb_image_page'] = $conf['GThumb']['nb_image_page'];
    41 
    42   if (is_dir(GTHUMB_CACHE_DIR) and !is_dir(GTHUMB_CACHE_DIR.'/'.$conf['GThumb']['height']))
    43   {
    44     // We clean cache dir because configuration has changed
    45     include_once(GTHUMB_PATH.'functions.inc.php');
    46     gtdeltree(GTHUMB_CACHE_DIR);
    47   }
    4841}
    4942
Note: See TracChangeset for help on using the changeset viewer.