?
Referenced as Pull Request for: # 11052
avatar Basstrup
Basstrup
7 Jul 2016

Steps to reproduce the issue

Turn on site cache in System > Global Configuration > System > Cache Setting
Make new menu item (any type)
Change Access to Registered
Go to front end log in

Expected result

Menu item with special access should show / disappear instantly depending on log in status

Actual result

Menu item does not show until cache is cleared or reset.
When logged in the menu item stays visible after log out - until cache is cleared

System information (as much as possible)

J 3.6rc2
PHP 5.4.45
MySQLi 5.5.48-37.8
Caching Enabled
Gzip Disabled

Additional comments

avatar Basstrup Basstrup - open - 7 Jul 2016
avatar brianteeman
brianteeman - comment - 7 Jul 2016

There are several cache settings. Which exact settings did you set?

avatar Basstrup
Basstrup - comment - 7 Jul 2016

Conservative Caching


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11049.

avatar Basstrup
Basstrup - comment - 7 Jul 2016

Browsers Chrome Version 51.0.2704.103 (64-bit) Mac and Firefox 47.0.1 Mac

Also tried Progressive Caching


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11049.

avatar ggppdk
ggppdk - comment - 8 Jul 2016

Tested and it only happens when System - Page Cache plugin is enabled

  • it works when only using conservative / progressive caching (just if you switch between conservative and progressive you may need to clean cache once ?)

also looked at the code, the model will clear the caching group: 'mod_menu'
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_menus/models/item.php#L1454
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_menus/models/item.php#L1664

and the module helper uses the same caching group: 'mod_menu'
https://github.com/joomla/joomla-cms/blob/staging/modules/mod_menu/helper.php#L41

Furthermore you need to have done this to see the effect:

  • page cache plugin is enabled
  • view the page with menu module
  • change the menu item access registered
  • view the page with menu module again , and login / logout

@Basstrup
can you check if you have enabled plugin:
System - Page Cache

also i assume you are using Joomla menu module and not some 3rd party

avatar mbabker
mbabker - comment - 8 Jul 2016

AFAIR nothing in core clears the page cache except for explicitly going to
the cache manager and flushing the cache. So as long as the module cache
is properly set and cleared with changes in the menu manager, I'd call this
expected behavior.

The page cache uses a special group to be able to cache full page and
return results quickly versus how the core cache works with only small data
segments and still runs the full page request.

On Thursday, July 7, 2016, Georgios Papadakis notifications@github.com
wrote:

Tested and it only happens when System - Page Cache plugin is enabled

  • it works when only using conservative / progressive caching

also looked at the code, the model will clear the caching group: 'mod_menu'

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_menus/models/item.php#L1454

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_menus/models/item.php#L1664

and the module helper uses the same caching group: 'mod_menu'

https://github.com/joomla/joomla-cms/blob/staging/modules/mod_menu/helper.php#L41

Furthermore you need to have done this to see the effect:

  • page cache plugin is enabled
  • view the page with menu module
  • change the menu item access registered
  • view the page with menu module again , and login / logout

@Basstrup https://github.com/Basstrup
can you check if you have enabled plugin:
System - Page Cache


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#11049 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAWfoYqEa7hDmeKDJKovofgcUrtWX_EMks5qTZ-ogaJpZM4JHiR0
.

avatar Basstrup
Basstrup - comment - 8 Jul 2016

here's what I see https://youtu.be/m19mdkmw7B4


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11049.

avatar ggppdk
ggppdk - comment - 8 Jul 2016

Yes, that is the intended purpose of plugin

System - Page Cache

It will postpone changes from appearing in the frontend until

  • either the cache expires (e.g. 15 mins)
  • or you clear the cache

thus works as intended

Furthermore in order to do what you need
Only enable Conservative or Progressive caching without the plugin: System - Page Cache

Conservative or Progressive caching

  • works indepedent of System - Page Cache
  • views / modules HTML is updated when settings / content are changed, because the corresponding part of the cache is cleaned

I would say that the only bad thing in all this is the description of the plugin

  • but there is no description, it is mystery plugin

no wonder i see sometimes people confusing it with conservative / progressive caching, lucky thing is that most users do not know it is there, thus they confuse it less with conservative / progressive and they enabled it less times

The plugin should have a description instead of having almost none

avatar brianteeman brianteeman - change - 8 Jul 2016
Category Accessibility Cache
avatar ggppdk
ggppdk - comment - 8 Jul 2016

Please suggest corrections to description texts (language strings) that i have wrote in this PR:
#11052

avatar gunjanpatel gunjanpatel - change - 8 Jul 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-07-08 10:24:30
Closed_By gunjanpatel
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jul 2016
Closed_Date 2016-07-08 10:24:30 2016-07-08 10:24:31
Closed_By gunjanpatel joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 8 Jul 2016
avatar gunjanpatel
gunjanpatel - comment - 8 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - close - 8 Jul 2016
avatar gunjanpatel
gunjanpatel - comment - 8 Jul 2016

Closing see #11052


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11049.

Add a Comment

Login with GitHub to post a comment