public function clearWidgetCache()
    {
        // Get Widgets
        $widgets = $this->getWidgets(false);
        $userId = $this->token->getToken()->getUser()->getId();

        // Clear Cache
        foreach ($widgets as $widget) {
            $this->cache->deleteItem($widget->getId().$userId);
        }
    }
public function clearWidgetCache()
    {
        // Get Widgets
        $widgets = $this->getWidgets(false);
        $userId = $this->token->getToken()->getUser()->getId();

        // Clear Cache
        foreach ($widgets as $widget) {
            $this->cache->deleteItem($widget->getId().$userId);
        }
    }
public function clearWidgetCache ( ) { // Get Widgets $ widgets = $ this -> getWidgets ( false ) ; $ userId = $ this -> token -> getToken ( ) -> getUser ( ) -> getId ( ) ; // Clear Cache foreach ( $ widgets as $ widget ) { $ this -> cache -> deleteItem ( $ widget -> getId ( ) . $ userId ) ; } }
Clear current user widget cache.

@throws \Psr\Cache\InvalidArgumentException
Clear current user widget cache .