Advanced module Manager & Joomla Cache

Search
Other Bug Reports questions
Forum

Advanced module Manager & Joomla Cache

Mitcha's Avatar Mitcha
Hello,
I have a problem with Advanced Module Manager and the Joomla Cache.

Settings:
Cache On - Advanced caching (2 minutes)
Advanced Modules Manager: Show module only if URL .amp.html


If the Joomla cache is on, the module will not show up on the .amp.html application.

If the cache is turned off, it works as it should. Can it be helped? Is this a bug?

Thanks for hints
Peter van Westen's Avatar Peter van Westen ADMIN
You probably have the Page Cache system plugin enabled. That caches the entire page including all modules.
You don't want that plugin enabled.

Read for more on caching here: www.joomlabeginner.com/blog/tutorials/81...able-cache-in-joomla
Please post a rating at the Joomla! Extensions Directory
Mitcha's Avatar Mitcha
Hi Peter,

thanks for the fast reply. No, Page Cache (System) is deactivated
Mitcha's Avatar Mitcha
After a more in-depth analysis, the problem persists from an update
from J4.4.3 & AMM 9.3
to J4.4.4 AMM 9.5.2
Peter van Westen's Avatar Peter van Westen ADMIN
Going by the mention of 'amp', you are probably using some kind of extension or template functionality for that.
That will be the place where the 'Escort and solution lies.

How your page gets cached is outside the control of Advanced Module Manager.
Please post a rating at the Joomla! Extensions Directory
Mitcha's Avatar Mitcha
hello, i have used the last few days to find the cause of the issue.
I want to deliver on .amp.html URL's other modules. This is done by Advanced Module Manager.

If I activate the cache (config -> System -> Cache), the page is cached as I call it.

And the condition I can set as URL in the advanced module manager don't work anymore when the cache is set.

Just test it:
$currentUri = Uri::current();
echo $currentUri;

First Call HTML $currentUri corresponds to: https://webseite/site.html
Second Call AMP $currentUri corresponds to: https://webseite/site.html

Reset cache
First call AMP $currentUri equals: https://webseite/site.amp.html
Second call HTML $currentUri corresponds to: https://webseite/site.amp.html

I can not imagine that this is correct
How do you see this?

Regards
Mitcha
Peter van Westen's Avatar Peter van Westen ADMIN
With the Page Cache system plugin enabled, the entire page is cached, including all modules.
That means it will NOT go through Advanced Module Manager to see what modules should show up. It just shows the whole page via cache.

So this is entirely expected behavior.

Read for more on caching here: www.joomlabeginner.com/blog/tutorials/81...able-cache-in-joomla

If you want to use Advanced Module Manager to dynamically show/hide modules... then don't use page caching.
Please post a rating at the Joomla! Extensions Directory
Mitcha's Avatar Mitcha
Hi,

as I described above, it is not the Page Cache System plugin, but the one in the config -> System -> Cache
Peter van Westen's Avatar Peter van Westen ADMIN
Well, as you described, this is down to caching, and how the AMP works.
What $currentUri results in, is outside the control of Advanced Module Manager. That is determined by Joomla itself.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in