def create_gzip_cache(pelican):
 for (dirpath, _, filenames) in os.walk(pelican.settings['OUTPUT_PATH']):
  for name in filenames:
   if should_compress(name):
    filepath = os.path.join(dirpath, name)
    create_gzip_file(filepath, should_overwrite(pelican.settings))

def create_gzip_cache ( pelican ) : for ( dirpath , _ , filenames ) in os . walk ( pelican . settings [ 'OUTPUT_PATH' ] ) : for name in filenames : if should_compress ( name ) : filepath = os . path . join ( dirpath , name ) create_gzip_file ( filepath , should_overwrite ( pelican . settings ) )
create a gzip cache file for every file that a webserver would reasonably want to cache .