TOPIC: Cache operation modes - clarification please

Cache operation modes - clarification please 19 May 2017 12:02 #1942

Hi

I have decided to test new Jotcache on my dev site running Joomla 3.7.1.

I have been testing it for a while now and noticed something that seems strange for me maybe a bug or something I don't understand.

In plugin settings Cache Operation Mode settings are described as:

"Caching mode based on user browser type. It is possible to set for each browser type (group) 3 different caching conditions : Exclude - do not perform caching, Common - page content for browser types with this mode are all stored in one common cache, Individual - page content is stored in own dedicated cache storage."

If I set Cache Operation Mode under "Other Desktop" to "Exclude" - it works as expected. Pages viewed on desktops are excluded from caching e.g.
2017-05-19 08:54:11	current browser excluded [Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)]
2017-05-19 08:54:11	READ CACHE start [http://cc.lan/]

I'd like to know the differences between "Common" setting and "Individual", because I don't see differences and for me it doesn't work as expected (it's all about IE8 and IE9...yes I know there are outdated). Let me show you logs.

If I set Cache Operation Mode under "Other Desktop" to "Common" I get:
2017-05-19 09:14:15	current browser in common group [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36]
2017-05-19 09:14:15	READ CACHE start [http://cc.lan/]
2017-05-19 09:14:15	READ CACHE after exclude check
2017-05-19 09:14:15	READ CACHE no data
2017-05-19 09:14:17	WRITE CACHE start
2017-05-19 09:14:17	WRITE CACHE after save in storage [true]
2017-05-19 09:14:17	WRITE CACHE stored data [adb23784815ca99b625dcc804553d824]
------------------------
2017-05-19 09:14:25	current browser in common group [Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0]
2017-05-19 09:14:26	READ CACHE start [http://cc.lan/]
2017-05-19 09:14:26	READ CACHE after exclude check
2017-05-19 09:14:26	READ CACHE retrieved data [adb23784815ca99b625dcc804553d824]
------------------------
2017-05-19 09:15:11	current browser in common group [Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)]
2017-05-19 09:15:11	READ CACHE start [http://cc.lan/]
2017-05-19 09:15:11	READ CACHE after exclude check
2017-05-19 09:15:11	READ CACHE retrieved data [adb23784815ca99b625dcc804553d824]
------------------------
2017-05-19 09:15:13	current browser in common group [Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)]
2017-05-19 09:15:13	READ CACHE start [http://cc.lan/]
2017-05-19 09:15:13	READ CACHE after exclude check
2017-05-19 09:15:13	READ CACHE retrieved data [adb23784815ca99b625dcc804553d824]

That's the same cache file served for Chrome, Firefox, IE9 and IE8. I believe that's how it should be for this setting - same cache file served for all browsers. Please correct me if I'm wrong here.

If I set Cache Operation Mode under "Other Desktop" to "Individual" I get:
2017-05-19 09:48:46	current browser desktop [Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0]
2017-05-19 09:48:46	READ CACHE start [http://cc.lan/]
2017-05-19 09:48:46	READ CACHE after exclude check
2017-05-19 09:48:46	READ CACHE no data
2017-05-19 09:48:48	WRITE CACHE start
2017-05-19 09:48:48	WRITE CACHE after save in storage [true]
2017-05-19 09:48:48	WRITE CACHE stored data [06b43e4919fb41c3040ac9f59d07bcf9]
------------------------
2017-05-19 09:48:51	current browser desktop [Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0]
2017-05-19 09:48:51	READ CACHE start [http://cc.lan/]
2017-05-19 09:48:51	READ CACHE after exclude check
2017-05-19 09:48:51	READ CACHE retrieved data [06b43e4919fb41c3040ac9f59d07bcf9]
------------------------
2017-05-19 09:48:54	current browser desktop [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36]
2017-05-19 09:48:54	READ CACHE start [http://cc.lan/]
2017-05-19 09:48:54	READ CACHE after exclude check
2017-05-19 09:48:54	READ CACHE retrieved data [06b43e4919fb41c3040ac9f59d07bcf9]
------------------------
2017-05-19 09:48:59	current browser desktop [Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)]
2017-05-19 09:48:59	READ CACHE start [http://cc.lan/]
2017-05-19 09:48:59	READ CACHE after exclude check
2017-05-19 09:48:59	READ CACHE retrieved data [06b43e4919fb41c3040ac9f59d07bcf9]
------------------------
2017-05-19 09:49:40	current browser desktop [Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)]
2017-05-19 09:49:40	READ CACHE start [http://cc.lan/]
2017-05-19 09:49:40	READ CACHE after exclude check
2017-05-19 09:49:40	READ CACHE retrieved data [06b43e4919fb41c3040ac9f59d07bcf9]

That's again same cache file served for Chrome, Firefox, IE9 and IE8 - and I'm confused here massively. "Page content is stored in own dedicated cache storage." description for "Individual" setting suggests, in my opinion, that page content is cached for each browser type. Is that correct? Can someone, please, explain it to me or correct me if I'm wrong?

The problem I'm facing is that I get some CSS fixes loaded for IE8 and the page is not displayed correctly when they are not loaded - cached for other browsers. I get some small CSS issues with IE9 too, but at least page is usable.

Thanks.


Joomla version : 3.7
JotCache version : 6.0.1
site template: yoo infinite
system plugins : sh404sef, jch pro
The administrator has disabled public write access.

Cache operation modes - clarification please 19 May 2017 14:05 #1943

In JotCache 6 was browser type recognition simplified to only three main groups (desktop, tablet, phone). This decision was made taking into account several user requests (e.g.
http://www.jotcomponents.net/forum/7-jotcache-operation-maintenance/1542-about-caching-option#1701
http://www.jotcomponents.net/forum/9-jotcache-usage-used-on-sites/1613-how-to-unite-phone-iphone-cache#1862)
as well as template development in last years which is now concentrated on usage of modern browsers IE9+ or IE11+.

When you need more detailed split of browser types then you need to use JotCache 5.3.2.
The administrator has disabled public write access.

Cache operation modes - clarification please 19 May 2017 14:29 #1944

Thanks for the reply. I like the plugin and plan to use it in production after testing.
In JotCache 6 was browser type recognition simplified to only three main groups (desktop, tablet, phone). This decision was made taking into account several user requests ...
as well as template development in last years which is now concentrated on usage of modern browsers IE9+ or IE11+.

I understand that and I know IE8/IE9 are outdated but I still get traffic from them on our site. I have checked release notes then compared browser split docs 6.0.1 and 5.3.2. I see the differences but still don't fully understand how "Common" and "Individual" settings differ as I get the same cache file served in my tests...
By "Individual" I understand that each browser should have it's own cache file for request generated and then delivered if another request is made from the same browser type. This makes me think that if IE8 request occurs a new cache file should be generated and then served if another request is made. I think it's a wrong assumption. Did you also change browser recognition php scripts? Maybe there is no need for "individual" setting anymore as it doesn't seem to do anything or I just don't understand it.

Can you please very briefly (two-theree sentences maybe) explain differences between "Common" and "Individual" Cache Operation Modes settings?
When you need more detailed split of browser types then you need to use JotCache 5.3.2.

Thanks for the suggestion. Does 5.3.2 version work with Joomla 3.7.1 (blank page cache bug was fixed in this version)?

Thank you again



Joomla version : 3.7
JotCache version : 6.0.1
site template: yoo infinite
system plugins : sh404sef, jch pro
The administrator has disabled public write access.

Cache operation modes - clarification please 20 May 2017 08:48 #1946

Explanation for excluded/common/individual :
Excluded - entire group of browser types (e.g. 'phones') is excluded from caching
Individual - entire group of browser types (e.g. 'phones') has its own common page cache
Common - means that one or several groups of browser types (e.g. 'desktops','tablets') share base page cache

For your example with IE8 browser requesting page: if 'desktops' is set to Individual then all desktop browsers (IE6, IE7, IE8...IE11, Edge, Chrome,..) share same page cache.

To exclude one specific browser type from caching (group) is necessary to assign such browser type to null in /plugins/system/jotcache/jotcache.php line 133 :
$commonBrowsers = ['edge' => 'desktop', 'firefox' => 'desktop', 'chrome' => 'desktop', 'safari' => 'desktop', 'desktop' => 'desktop', 'msie6' => null, 'msie7' => null, 'msie8' => null, 'msie9' => 'desktop', 'msie10' => 'desktop', 'msie11' => 'desktop', 'iPad' => 'tablet', 'iPhone' => 'phone', 'phone' => 'phone', 'tablet' => 'tablet', 'bot' => 'bot'];

Such assignment is working in new released JotCache 6.0.2. Use this version for your evaluation.

NOTE: JotCache 5.3.2 is well working with Joomla 3.7.1
The administrator has disabled public write access.

Cache operation modes - clarification please 22 May 2017 12:00 #1951

Hi
Explanation for excluded/common/individual :
Excluded - entire group of browser types (e.g. 'phones') is excluded from caching
Individual - entire group of browser types (e.g. 'phones') has its own common page cache
Common - means that one or several groups of browser types (e.g. 'desktops','tablets') share base page cache

Now I understand :-) Please consider merging the above with existing docs and plugin labels.
To exclude one specific browser type from caching (group) is necessary to assign such browser type to null in /plugins/system/jotcache/jotcache.php line 133 :
$commonBrowsers = ['edge' => 'desktop', 'firefox' => 'desktop', 'chrome' => 'desktop', 'safari' => 'desktop', 'desktop' => 'desktop', 'msie6' => null, 'msie7' => null, 'msie8' => null, 'msie9' => 'desktop', 'msie10' => 'desktop', 'msie11' => 'desktop', 'iPad' => 'tablet', 'iPhone' => 'phone', 'phone' => 'phone', 'tablet' => 'tablet', 'bot' => 'bot'];
Such assignment is working in new released JotCache 6.0.2. Use this version for your evaluation.

Thanks - this is what I need. I have installed and tested newly released 6.0.2. I have edited the file and excluded IE9 too as I have few small CSS issues with cached home page for some reason with that browser. Exclusion works well. Thanks again.
JotCache 5.3.2 is well working with Joomla 3.7.1

Can confirm that - it's working well, but I decided to go with 6.0.2 as I really like debug log you added in that version - it helps a lot - well done.

6.0.2 is already in production - will check server response time - I'm expecting it do go down and be around 0.2 sec - this is what I was getting with Joomla Page Cache but had issues with IE8 and IE9.

Joomla version : 3.7
JotCache version : 6.0.2
site template: yoo infinite
system plugins : sh404sef, jch optimise pro
The administrator has disabled public write access.

Cache operation modes - clarification please 22 May 2017 12:08 #1952

Well done. Congrats
The administrator has disabled public write access.
Time to create page: 0.268 seconds
We have 94 guests and no members online
Copyright © 2015 JotComponents
We have 94 guests and no members online
Copyright © 2018 JotComponents