By ETS-Consulting on Thursday, 12 October 2017
Posted in Technical Issues
Replies 12
Likes 0
Views 1K
Votes 0
hi StackIdeas,

I have noticed when the Joomla cache is ON the rendering of the layout (css?) is randomly corrupted. This means after cache is expired and Joomla generates the module again sometimes the layout is OK but sometimes corrupted. See screenshots of both situations attached.

I have observation that for the module "last discussions" of EasyDiscuss the same problem appears.

many thanks in advance
Martin
Hi there,

It might be because of your site and browser cache them. On my end, it is showing correctly as you can see here http://take.ms/oDGdC.

It should be no problem, or maybe you need to clear your cache(for JCH plugin and your site) in order fro them to display correctly again.

Please advice.
·
Thursday, 12 October 2017 10:17
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Abdul,

thanks for your answer. I am sure it is the problem of caching but the solution can not be to disable browser and Joomla cache

It is randomly the problem. Just try a couple of times to clear the Joomla cache and visit the page and you will see that sometimes it is generated correctly and sometimes incorrectly. I see this problem since a long time, ony various browser, desktop and mobile so it is not a problem of my particular browser.

JCH plugin is not a problem - I have installed it just weeks ago and this problem I know I reported a long time ago already in this forum. I have disabled it now.

I have analysed it quickly I observer that the generated css for this module are not always the same - does the generation of those css depends on something? Like the platform of the user ?

best regards
Martin
·
Thursday, 12 October 2017 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Yes, actually your observations is correct as that is how cache works. There are possibilities where they will cache however not fetched it latest stylings and might be your browser cache them for you. But, if there are new user visit your site, they will shown correctly as they will fetch new data and cached them for their usage.

And thus, it is required for you to clear your site and browser cache so that your site will fetch the latest changes on your site. And maybe you can extend this to Joomla's on how they perform cache for better understanding.

Please advice.
·
Thursday, 12 October 2017 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Abdul,

should I say to all my users to refresh their browser cache every 5 minutes because my Joomla cache setting is set to 5 minutes?

I am the first person reporting this problem?

thanks in advance
Martin
·
Friday, 13 October 2017 00:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Martin,

This really is not a problem with EasyDiscuss or any of our extension as a matter of fact. If your site is generating a cached copy of css file every 5 seconds, it should use a unique (different) hash for the name of the file, otherwise there is no way for the browsers to know that the site has a new copy of the css file.

Having said that, why does the css file gets refreshed every 5 minutes? It should only be refreshed when there are changes on the css shouldn't it?
·
Friday, 13 October 2017 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Mark,

thanks for the answer. I have a feeling you guys sometimes answer too fast


>> If your site is generating a cached copy of css file every 5 seconds, it should use a unique (different)
>> Having said that, why does the css file gets refreshed every 5 minutes?

What do you mean my website is generating? I am not generating anything. I am using only the standard Joomla cache feature + Komento nothing else

Anyway ... looking a bit deeper and I have found following
* when the layout of the module is correct I see in the source of the page html following line:
<link href="/components/com_komento/themes/bubbles/styles/style.min.css" rel="stylesheet" type="text/css" />

* when the layout is corrupted this line is NOT INCLUDED in the source of the html

So the question we can narrow a bit: what is the reason that Komnento component sometimes include this line in the output html and sometimes not ?

I hope my last analysis helps a bit to localise the problem.

many thanks in advance
Martin
·
Friday, 13 October 2017 01:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It might be because that module(Komento comment) module also cached them. They have their own caching settings also. I have excluded it from caching and it should not cache for current time as shown http://take.ms/InKBo.

Please give it a check ad see how it goes.
·
Friday, 13 October 2017 12:59
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Abdul,

I would really appreciate to have this problem solved - disabling caching is not solution of the problem

thanks in advance
Martin
·
Friday, 13 October 2017 13:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I suspected that it does not fetched it correct files because of this plugin http://take.ms/8LXg6 as it contains specifics tag for your sites. Your site might use those tag on that plugin and once cache are cleared, it will fetch it correct tag/scripts/css for your site.

Maybe you can try to disable them first, let your site cache first and see how it goes.
·
Friday, 13 October 2017 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post