Show
Ignore:
Timestamp:
12/17/11 19:14:43 (18 months ago)
Author:
patdenice
Message:

Delete cache automaticaly if height or margin has changed

Files:
1 modified

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