plone/Products.ResourceRegistries — pull request #6 by runyaga (2012-06-07 01:17:18+00:00)
Title: change manage_upload call to update_data call; do substantially less work

Plone 4.2 you can change plone.cachepurging.hooks.queuePurge and hooks.purge to print and restart. Watch the madness.

end of hooks.queuePurge function:
print 'queued', str(paths)

print 'purgeAsync', url
before purger.purgeAsync(url)

enable purging support in plone.app.caching and fill out a proxy server to send purges to.. and voila.

I could checking inside of the ResourceRegistry if you are in debug mode/purging was enabled and then emitting the ObjectModifiedEvent to send a purge; but having the event sent as a side effect of calling manage_upload is incorrect.