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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:10:12
Script start
Timing: Jan 18 2025 11:10:12
Module start 'layout'
Timing: Jan 18 2025 11:10:12
Module start 'content'
Timing: Jan 18 2025 11:10:13
Module end 'content'
Timing: Jan 18 2025 11:10:13
Script end

Main resources:

Total runtime0.8336 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.7891152.6094
Module start 'layout' 0.00880.0039 740.398439.3984
Module start 'content' 0.01270.8194 779.7969537.3906
Module end 'content' 0.83210.0014 1,317.187516.2422
Script end 0.8335  1,333.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3935160.0002
Check MTime0.00140.1626160.0001
Mysql Total
Database connection0.00180.214010.0018
Mysqli_queries0.767792.1013660.0116
Looping result0.00070.0829640.0000
Template Total0.785094.220.3925
Template load0.00250.305720.0013
Template processing0.782493.863020.3912
Template load and register function0.00020.018210.0002
states
state_id_array0.00180.219910.0018
state_identifier_array0.00330.399820.0017
Override
Cache load0.00230.2744460.0000
Sytem overhead
Fetch class attribute can translate value0.00090.110520.0005
Fetch class attribute name0.00140.166260.0002
XML
Image XML parsing0.00020.027420.0001
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00070.0830100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs