#364 Regularly clean up Damned Lies cache
Closed: Fixed None Opened 16 years ago by glezos.

DL doesn't do a good job in keeping its cache clean and up2date. For example, when moving a module to a new VCS of the same type/branch, DL doesn't take care of it and .hg, .git directories still point to the older system, making update not to work.

We should consider adding a cron job that every few days (3?) deletes the whole scratchdir a few minutes (2?) before the normal cron job. Everything will be re-created.


Some more info I forgot to mention. The above bug happens only for hg and git, so we could just delete those to fix only this one. However there are other small stuff that a global vacuum would benefit (eg. a module is renamed and the older dir remains) etc.

The whole directory (download size) is now 2.6 GB.

In Transifex I'll try to fix it dynamically. Three ideas:

  • WUI to move modules
  • Every time a module has changed its repo/info, clear the cache and re-create it
  • Admin WUI to clear/refetch all modules at anytime.

This is somehow related to #399.

This is long open but I think now that we've moved to bapp1 building the database and syncing from there, its become easier to just blow the db away from time to time and have the fresh one sync out. That way the live sites are never really without it.

Login to comment on this ticket.

Metadata