Excluding views from "LastAccessesURI"

Author Message

H-Works Agency

Tuesday 02 February 2010 9:04:58 am

Hello,

Is it possible to avoid modules view addresses to be recorded in "LastAccessesURI" session var ?

Because when you use ajax or xml asynchronous views their addresses are recorded in the var then when you use a function with redirection it redirects you for example your ajax view.

EZP is Great

Damien Pobel

Thursday 04 February 2010 5:52:05 am

Hi Martin,

there's an issue about that : http://issues.ez.no/12621

currently there are two ways to fix this :

  1. use the index_ajax.php script for ezjscore or ezcore extensions with some custom rewrite rules on URLs used in your call AJAX
  2. if you wrote your own module/view for your AJAX calls, set the ui_context of your view to 'edit' or 'administration' or 'browse' or 'authentication' (see index.php around line 917)

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/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 02:10:08
Script start
Timing: Jan 18 2025 02:10:08
Module start 'layout'
Timing: Jan 18 2025 02:10:08
Module start 'content'
Timing: Jan 18 2025 02:10:09
Module end 'content'
Timing: Jan 18 2025 02:10:09
Script end

Main resources:

Total runtime0.7340 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.0053 589.0547152.6250
Module start 'layout' 0.00530.0023 741.679739.4453
Module start 'content' 0.00760.7247 781.1250531.1875
Module end 'content' 0.73230.0017 1,312.31258.1563
Script end 0.7340  1,320.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3960160.0002
Check MTime0.00120.1617160.0001
Mysql Total
Database connection0.00090.117710.0009
Mysqli_queries0.684093.1810540.0127
Looping result0.00050.0629520.0000
Template Total0.708296.520.3541
Template load0.00180.246520.0009
Template processing0.706396.228620.3532
Template load and register function0.00010.014010.0001
states
state_id_array0.00070.101510.0007
state_identifier_array0.00070.097220.0004
Override
Cache load0.00150.1989160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.110620.0004
Fetch class attribute name0.00110.148240.0003
XML
Image XML parsing0.00090.124620.0005
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00080.1107230.0000
String conversion0.00000.000940.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
2content/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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs