The module content of all the module instances in the article is always the same as the content rendered by the first instance of the module.
Each instance of the module in the article should be rendered separately
Joomla 4.1.3
PHP 8.1
System Cache is OFF
This is working as expected in Joomla 3.X but not working in Joomla 4.X
The issue is due to the code in the file on the path given below
JOOMLA/libraries/src/Helper/ModuleHelper.php => Function renderRawModule()
if (!empty($module->contentRendered)) { return $module->content; }
Labels |
Added:
No Code Attached Yet
|
Title |
|
So this issue can be closed as expected behavior?
The module with the same ID will produce the same result (it actualy cached on initial call).
@Fedik This is expected behavior and is good to improve the performance but ideally the output should not be cached if the cache is disabled in Joomla global configuration.
Labels |
Added:
bug
|
This is correct behavior for Joomla 4.
The module with the same ID will produce the same result (it actualy cached on initial call).
It probably better to use multiple module instances.
Also can be own Content plugin instead of module.