Forums / Developer / Role changes aren't effective,I must delete cache with purge

Role changes aren't effective,I must delete cache with purge

Author Message

Sébastien Morel

Monday 23 February 2009 2:24:00 am

Hi,

I don't think it is a bug eZ because on another instance of ez4 (in VM or another plate-form for example) I don't have this problem

I would like to have some hints to fix this problem.

My eZ works on a Debian with a remote database.
There was a difference of date between the web server and the database, I fixed this difference.
But nothing the problem is still there, I must clear the cache with --purge whenever I want to apply a change of role.

(For example I delete the user/login to Anonymous, and the site is always ok, the change has no effect until I clear and purge the cache)

Perhaps some information is not correct in the database because of the date difference ?

I just upgraded with ez4.0.3, and my webserver have the system rights on the file;)
Ez is not yet in the cluster mode.

I don't know where to look for.

Someone have an idea ?

Thanks
Séb

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Jean-Yves Zinsou

Monday 23 February 2009 4:57:47 am

Hi I had the same experience, the final issue was that i had incorrect cache blocks in my pagelayout.tpl.

Check out those blocks and make sure they are all properly closed.

Another way of checking this is to use the default pagelayout and see if the problem persists. If it does not, it means that your code is involved in this problem..

Hope this helps,
Regards,
Jean-yves

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Sébastien Morel

Monday 23 February 2009 6:39:47 am

Hi,

Thanks for your help, but it's not a cache-block problem for me :(

I have make the test with the empty page layout just

{$module_result.content}

and I have the same behaviour.

My config is without all cache and I havn't cache-block for the moment.

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Sébastien Morel

Saturday 14 March 2009 2:04:11 pm

Hi,

I found the origin of my problem, if I can help somebody.

In fact, my webserver is an virtual machine of the file server and the system date didn't correspond into the two systems....

This stupid error affected the clear of the cache naturally ;)

++
Séb

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Jean-Yves Zinsou

Tuesday 17 March 2009 1:49:19 am

Thanx,
for sharing, i have just come across the same kind of prob....

Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

eZ debug

Timing: Jan 18 2025 03:00:07
Script start
Timing: Jan 18 2025 03:00:07
Module start 'content'
Timing: Jan 18 2025 03:00:08
Module end 'content'
Timing: Jan 18 2025 03:00:09
Script end

Main resources:

Total runtime1.1166 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9688180.7969
Module start 'content' 0.00610.9667 768.7656581.6406
Module end 'content' 0.97280.1438 1,350.4063341.3359
Script end 1.1166  1,691.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3400210.0002
Check MTime0.00160.1394210.0001
Mysql Total
Database connection0.00070.058710.0007
Mysqli_queries1.035292.70652000.0052
Looping result0.00190.16691980.0000
Template Total1.089697.620.5448
Template load0.00220.196920.0011
Template processing1.087397.376120.5437
Template load and register function0.00020.020710.0002
states
state_id_array0.00100.088510.0010
state_identifier_array0.00100.087320.0005
Override
Cache load0.00190.1686480.0000
Sytem overhead
Fetch class attribute can translate value0.00120.109430.0004
Fetch class attribute name0.00140.127570.0002
XML
Image XML parsing0.00330.291630.0011
class_abstraction
Instantiating content class attribute0.00000.0018100.0000
General
dbfile0.00690.6174330.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs