By catch on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.4.x
Introduced in version:
11.4.0
Issue links:
Description:
ExtensionList::getList() now has a new, optional, $skip_cache = FALSE argument. When this argument is passed, both persistent and static caching will be bypassed and the list of extensions will be recalculated from the file-system. Note that as well as bypassing the cache, this also does not update the cache either, although it will populate the static cache so that subsequent calls on the same page will use the freshed possible information.
This can be used in situations that previously would have invalidated the cache in order to get a full list of available extensions:
Before:
// Get all available themes.
$themes = $this->themeExtensionList->reset()->getList();
After:
// Get all available themes.
$themes = $this->themeExtensionList->getList(TRUE);
Impacts:
Module developers