Skip to content

Document WidgetDetailEvent setCacheTimeout() removal in Mautic 8 - #618

Open
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/pr-17034-widgetdetailevent-cachetimeout-removal
Open

Document WidgetDetailEvent setCacheTimeout() removal in Mautic 8#618
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/pr-17034-widgetdetailevent-cachetimeout-removal

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open in Promptless

Mautic 8 removes the setCacheTimeout() method and its backing $cacheTimeout state from the dispatched Mautic\DashboardBundle\Event\WidgetDetailEvent. This adds a short "WidgetDetailEvent changes in Mautic 8" section to the Plugins Cache page so Plugin developers who subscribe to the Dashboard Widget events know to remove any setCacheTimeout() call from their subscriber. The removed state was write-only dead code, so there's no behavior change — the Widget cache lifetime still comes from Widget::getCacheTimeout() in setTemplateData(), and Widget data is cached only through CacheProviderTagAwareInterface.

Files touched: docs/plugins/cache.rst (+11).

Trigger Events

…oval in Mautic 8

Source: mautic/mautic#17034 - removes the dead $cacheTimeout property and
public setCacheTimeout() method from WidgetDetailEvent. Adds a short
'WidgetDetailEvent changes in Mautic 8' section to docs/plugins/cache.rst
telling subscribers to remove any setCacheTimeout() call; behavior is
unchanged (cache lifetime comes from Widget::getCacheTimeout()).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant