How to fire a custom event from another plugin? I have some questions about events. I want to fire a custom event from another plugin. The event handler is in MyHelpers_PostService.php (plugin A).

public function onSavePost(Event $event)
{
    $this-&gt;raiseEvent('onSavePost', $event);
}


My init() method (plugin B):

public function init()
{
    craft()-&gt;on('myHelpers_Post.savePost', function(Event $event)
    {
       // delete a cache key 
       craft()-&gt;pluginB-&gt;clearCache('forum-home-desktop');
    });
}


This is my first time working on Craft events, so please bear with me. I tested this by saving a new Helpers Post on the front-end and nothing happens. 

The clearCache() method is just using Craft's deleteCachesByKey();


Is myHelpers_Post.savePost correct?
What else do I need to make this work?
How do I test this properly? Can I use Craft::dd() inside the handler?
myHelpers_Post.savePost was wrong. It should have been myHelpers_post.savePost. It's okay to delete this question.