? ? Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
10 Sep 2021

Summary of Changes

No need to render a module via callback cache controller if caching is disabled.

Testing Instructions

Enable Joomla caching, apply patch, see no changes except slight cached module rendering time improvement for logged users.

Actual result BEFORE applying this Pull Request

The module is rendered or the module data is loaded via callback cache without storing the data, even if caching is disabled.

Expected result AFTER applying this Pull Request

The callback is executed directly.

Documentation Changes Required

No.

avatar Denitz Denitz - open - 10 Sep 2021
avatar Denitz Denitz - change - 10 Sep 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Sep 2021
Category Libraries
avatar Fedik
Fedik - comment - 10 Sep 2021

This method does not used when cache is disabled
https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Document/Renderer/Html/ModuleRenderer.php#L36

So your changes does not make sense.

avatar Denitz
Denitz - comment - 10 Sep 2021

@Fedik Enable conservative caching in Joomla, ensure that module setting Caching is enabled, log-in and see

avatar Fedik
Fedik - comment - 10 Sep 2021

That may happen if the module itself also use cache, because $params->get('cache') == 1.

avatar Denitz Denitz - change - 5 Oct 2021
Labels Added: ?
avatar Denitz Denitz - change - 22 Feb 2022
Labels Added: ?
Removed: ?
avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull request has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner HLeithner - change - 27 Jun 2022
Labels Added: ?
avatar Denitz Denitz - change - 2 Jul 2022
Labels Added: ?
avatar Denitz Denitz - change - 23 Jul 2022
Labels Removed: ?
avatar HLeithner HLeithner - change - 22 Oct 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-10-22 07:43:28
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 22 Oct 2022

@Denitz thanks for this pr but I think @Fedik is right and the module it self could be responsible for this.

I'm closing this for now.

avatar HLeithner HLeithner - close - 22 Oct 2022

Add a Comment

Login with GitHub to post a comment