[dokuwiki] meta data of deleted pages

  • From: Michael Klier <chi@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 13 Mar 2008 22:49:23 +0100

Hi fellow DokuWiki entusiasts :),

Chris Smith and I noticed a small problem regarding the meta data of deleted
pages. Here's a short roundup:

If one has the useheading option enabled and deletes a page, links which point
to that page still used the heading of that page as link title. This was
because of a bug of metaFiles() which returned wrong file paths. This had the
effect that metadata files weren't deleted when a page was deleted. Chris send
a patch to fix metaFiles(), however one question remains.

Is deleting the .meta file the right thing to do? 

The .meta file stores information about the page creator and the original
creation date. If that file would be deleted, and then the wiki page would be
created again, these values would be set to something different than before,
although it's the same page (one could think that the bug in metaFiles()
prevented us from noticing this up to now).

A typical scenario where this wouldn't be desireable is, when someone deletes
a page by accident/intention and someone else would create it again. The wiki
page would effectively be created "for the first time" again. I think that
this would also apply if an old revision was restored (but I might be wrong in
this point ;)).

I would suggest that the .meta files aren't deleted when a page gets deleted,
but the non-persitent meta information, like title, abstract, tableofcontents
and the like should be purged.

What are your opinions regarding this matter?

Happy wikiing,
    Chi

-- 
Michael Klier

mail:   chi@xxxxxxxxxxx
www:    http://www.chimeric.de
icq:    206179334
jabber: chi@xxxxxxxxxxxxxxxxxx
key:    http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551

Other related posts: