[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Maposmatic-dev] [PATCH maposmatic] Improve the file cleanup mechan

From: David MENTRE
Subject: Re: [Maposmatic-dev] [PATCH maposmatic] Improve the file cleanup mechanism
Date: Wed, 13 Jan 2010 16:19:24 +0100

2010/1/13 Maxime Petazzoni <address@hidden>:
>  * when a file needs to be removed, all files from its parent job are
>    removed, and the job's has_files flag is set to false. It does not
>    make a lot of sense to keep partial renderings anyway (the map
>    without the index? in different formats? Not good.)
>  * if no parent job can be found, it's an orphaned file and can be
>    safely removed. Files starting with a '.' are preserved though
>    (.htaccess for example).

For the record, Thomas, Maxime and myself had a private discussion
about this approach: starting from disk files and updating the job
status in the database. Thomas said we could do the reverse: starting
from the job in the database and erasing corresponding files.

I personally think current Maxime's approach is better:
 * We don't forget any file;
 * We can manually erase a file on a server (e.g. use of Title
forbidden by law) and the job status is automatically updated.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]