On 03/24/2010 07:02 PM, Thomas Mortagne wrote:
Hi devs,
Currently it's not really possible to know that a wiki as been deleted (there is possible hack based on wiki descriptor but it's not more than a hack).
The direct issue with that is that anyone having a document based cache can't update it. One good example is Lucene, if you delete a wiki you will still have the related page in the Lucene index. It also means in a cluster that other instances will not know a wiki has been deleted and you can still find pages of this wiki in the documents cache of the other instances.
I propose to create a WikiCreatedEvent (to be consistent, and we could use that to do some wiki initialization tasks) and WikiDeletedEvent events.
WDYT ?
+1
Here is my +1.
The related jira issue is http://jira.xwiki.org/jira/browse/XWIKI-3966
-- Sergiu Dumitriu http://purl.org/net/sergiu/