On Tue, Jun 19, 2012 at 6:22 AM, James HK <jamesin.hongkong.1@gmail.com> wrote:
I haven't looked at the change[1] in full but I know
deleteSemanticData included a wfRunHooks( 'smwDeleteSemanticData',
array( $subject ) ) and with this method gone neither SMW_SQLStore2
nor SMW_SQLStore2_Writers includes the hook.

The method isn't gone, its still there in SQLStore2. However, doDatauUdate doesn't use this anymore. It instead uses deleteTableSemanticData() - which is a similar method but only deletes SMWdata from a particular table.

We need some of those hooks during the query cache invalidation
process. If you plan to change some of those hooks on instances where
update/delete or change events are happening, please let us know in
advance and ensure a deprecated message for other developers.

// SWM Query Cache
$wgHooks['SMWStore::updateDataBefore'][]   =
'SMWQueryCache::onUpdateDataBefore'; // invalidate on update
$wgHooks['smwDeleteSemanticData'][]        =
'SMWQueryCache::onDeleteSemanticData'; // invalidate on delete
$wgHooks['smwChangeTitle'][]               =
'SMWQueryCache::onChangeTitle'; // invalidate on moveTitle it is not
included in update

[1] https://gerrit.wikimedia.org/r/#/c/10706/



 You surely can add new hooks in deleteTableSemanticData as per your need :)


Nischay Nahata