eZ Community » Forums » General » LastAccessesUri and caching
expandshrink

LastAccessesUri and caching

LastAccessesUri and caching

Wednesday 22 July 2009 11:28:56 am - 1 reply

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?

Modified on Wednesday 22 July 2009 4:16:54 pm by Matteo Mosangini

Saturday 03 October 2009 3:46:59 pm

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu