Author Message

Pascal France

Friday 26 May 2006 8:23:37 am

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Monday 29 May 2006 12:27:51 pm

Hi,

This post is not bound with my previous question above.

I have a login trouble with my two siteaccess.
I have three users for my_plain siteaccess: A, B and C
Once I'm logged in with user A, I can see: "welcome user A".
I log out and then log in with user B. But I see again: "welcome user A" and I have to display a new page (say page_1) to see: "welcome user B".
If I log out and log in with user C, I see: "welcome user A" and if I display "page_1" I see "welcome user B".

It seems the displayed pages are in the cache.

I added the code to display the user names in pagelayout.tpl:

{def $user=fetch( 'user', 'current_user' )}
{if $user.is_logged_in}
{$user.contentobject.name}
{/if}
{undef $user}

and I added in my "my_plain" site.ini.append.php:

 43 [FileSettings]
 44 VarDir=var/my_plain
 45 StorageDir=storage
 46 CacheDir=cache
 47 LogDir=log

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Monday 29 May 2006 1:18:52 pm

Hi,

I created a username.tpl witch contains:

  1 {def $user=fetch( 'user', 'current_user' )}
  2 {if $user.is_logged_in}
  3 <div id="user_avatar">
  4 {attribute_view_gui attribute=$user.contentobject.data_map.image image_class=small}<br />
  5 {$user.contentobject.name}
  6 </div>
  7 {/if}
  8 {undef $user}

and then, I tried these two solutions:
First one, in pagelayout.tpl:

 77 {cache-block expiry=1}
 78 {include uri='design:username.tpl'}
 79 {/cache-block}

Second, in my_plain/site.ini.append.php:

 49 [ContentSettings]
 50 ViewCaching=disabled

but I have always the same problem (even I disable ViewCaching in site.ini and set "CachedViewModes=").

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Marcin Drozd

Monday 29 May 2006 2:02:58 pm

Hi Pascal
Did U try with:

{set-block scope=root variable=cache_ttl}0{/set-block}

This code should be the first line in your template (I think username.tpl)

http://ez-publish.pl

Pascal France

Tuesday 30 May 2006 12:14:21 am

Hi Marcin,

I didn't know this function, so I did a search and found this thread:
http://ez.no/community/forum/setup_design/cache_problem_question/re_cache_problem_question__2
and the documentation pages:
http://ez.no/doc/ez_publish/technical_manual/3_7/reference/template_functions/variables/set_block
http://ez.no/doc/ez_publish/technical_manual/3_7/templates/the_pagelayout/variables_in_pagelayout

...and it should work......but not for me and I have always the same problem :-(

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Tuesday 30 May 2006 12:57:35 am

Hi,

How is it possible that disabling all caches in site.ini or site.ini.append.php (ViewCaching and [OverrideSettings]) has no effect ??

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

eZ debug

Timing: Jan 18 2025 04:24:30
Script start
Timing: Jan 18 2025 04:24:30
Module start 'content'
Timing: Jan 18 2025 04:24:30
Module end 'content'
Timing: Jan 18 2025 04:24:31
Script end

Main resources:

Total runtime0.8341 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.5391180.8516
Module start 'content' 0.00640.6684 768.3906542.4453
Module end 'content' 0.67480.1593 1,310.8359338.1641
Script end 0.8341  1,649.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5292210.0002
Check MTime0.00150.1818210.0001
Mysql Total
Database connection0.00110.135210.0011
Mysqli_queries0.747589.61062030.0037
Looping result0.00240.29312010.0000
Template Total0.798195.720.3991
Template load0.00220.264120.0011
Template processing0.795995.415720.3979
Template load and register function0.00020.026310.0002
states
state_id_array0.00190.226910.0019
state_identifier_array0.00150.183120.0008
Override
Cache load0.00200.2434460.0000
Sytem overhead
Fetch class attribute can translate value0.00140.164630.0005
Fetch class attribute name0.00130.160560.0002
XML
Image XML parsing0.00070.078730.0002
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00300.3655210.0001
String conversion0.00000.000930.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/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: 6

Time used to render debug report: 0.0001 secs