LastAccessesUri and caching

Author Message

Matteo Mosangini

Wednesday 22 July 2009 2:28:56 am

Hi,

Environment: ezp 4.1.3 php 5.2.10 apache 2.2.11 OS Debian

I'm experiencing a strange problem: when caching (view, template) is enabled LastAccessUri is non set when you edit a content Item.
To overcame this problem I modified index.php:

original code:

// Update last accessed view page
    if ( $currentURI != $lastAccessedViewURI and
         !in_array( $module->uiContextName(), array('edit',  'administration', 'browse', 'authentication' ) ) )
    {
         $http->setSessionVariable( "LastAccessesURI", $currentURI );
  
    }

modified code:

// Update last accessed view page
    if ( $currentURI != $lastAccessedViewURI and
         !in_array( $module->uiContextName(), array('edit',  'administration', 'browse', 'authentication' ) ) )
    {
  if (strlen($currentURI)>0){
        $http->setSessionVariable( "LastAccessesURI", $currentURI );
  }
    }

Is this a bug?
Should I report it?

Jean-Benoit Murat

Saturday 03 October 2009 6:46:59 am

Hi,

I had exactly the same problem and I searched for a long time to solve it !

Thanks for all and I think you should report It

JB

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 15:05:10
Script start
Timing: Jan 18 2025 15:05:10
Module start 'layout'
Timing: Jan 18 2025 15:05:10
Module start 'content'
Timing: Jan 18 2025 15:05:11
Module end 'content'
Timing: Jan 18 2025 15:05:11
Script end

Main resources:

Total runtime1.0746 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9063152.6250
Module start 'layout' 0.00610.0043 740.531339.4453
Module start 'content' 0.01031.0630 779.9766524.0000
Module end 'content' 1.07330.0012 1,303.97668.1641
Script end 1.0746  1,312.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2963160.0002
Check MTime0.00140.1258160.0001
Mysql Total
Database connection0.00120.108210.0012
Mysqli_queries1.027895.6408540.0190
Looping result0.00050.0472520.0000
Template Total1.039796.720.5198
Template load0.00210.194320.0010
Template processing1.037696.552920.5188
Template load and register function0.00010.010910.0001
states
state_id_array0.00150.135410.0015
state_identifier_array0.00110.105320.0006
Override
Cache load0.00160.1508180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.048220.0003
Fetch class attribute name0.00100.091030.0003
XML
Image XML parsing0.00230.215220.0012
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00310.2868160.0002
String conversion0.00000.001140.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs