Hi all, If sources for a file are removed, old compiled files are note removed (unless one deletes the webgen.cache file from the server to rebuild the whole site). Is this a bug, or is this somehow intended? Best wishes, Matthias -- Deputy German Coordinator, Fellowship Coordinator Free Software Foundation Europe (FSFE) [] (http://fsfe.org) Join the Fellowship of FSFE! [][][] (http://fsfe.org/join) Your donation powers our work! || (http://fsfeurope.org/donate)
> If sources for a file are removed, old compiled files are note removed > (unless one deletes the webgen.cache file from the server to rebuild > the whole site). Is this a bug, or is this somehow intended?This is currently intended although everything is in place to switch the behaviour; ie. the output classes need to have support for deleting a specified path. If you look at the source for Webgen::SourceHandler::Main#update_tree you will find a TODO comment for really deleting the output path of a node when a source path for it cannot be found anymore. I had a reason why I didn''t enable this but it has slipped from my mind... will look through my larger TODO list to find out. However, I can''t currently think of any reason why this should not be enabled... thoughts?! I will probably enable this for the next release. Also note that deleting the webgen.cache file will not make webgen delete files in the output directory! -- Thomas
> If sources for a file are removed, old compiled files are note removed > (unless one deletes the webgen.cache file from the server to rebuild > the whole site). Is this a bug, or is this somehow intended?I have just added a new configuration option `output.do_deletion` which defaults to `false`. Once set to `true`, output paths are deleted once their nodes are deleted. -- Thomas
Hi Thomas, * Thomas Leitner <t_leitner at gmx.at> [2009-06-17 07:07:14 +0200]:> > If sources for a file are removed, old compiled files are note removed > > (unless one deletes the webgen.cache file from the server to rebuild > > the whole site). Is this a bug, or is this somehow intended? > > I have just added a new configuration option `output.do_deletion` which > defaults to `false`. Once set to `true`, output paths are deleted once > their nodes are deleted.Thank you very much! Matthias -- Deputy German Coordinator, Fellowship Coordinator Free Software Foundation Europe (FSFE) [] (http://fsfe.org) Join the Fellowship of FSFE! [][][] (http://fsfe.org/join) Your donation powers our work! || (http://fsfeurope.org/donate)