Changeset 13295

Show
Ignore:
Timestamp:
11/07/07 13:22:12 (1 year ago)
Author:
bergie
Message:

Add full request URI (fromĀ $_SERVER) to context data for cache purposes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/constants.php

    r12910 r13295  
    7272define ('MIDCOM_CONTEXT_LASTMODIFIED', 10); 
    7373define ('MIDCOM_CONTEXT_PERMALINKGUID', 11); 
     74define ('MIDCOM_CONTEXT_URI', 12); 
    7475 
    7576// INTERNAL Context Keys, not accessible from outside midcom_application. 
  • trunk/midcom/midcom.core/midcom/application.php

    r13262 r13295  
    701701        // enter that context and prepare its data structure. 
    702702        $context = $this->_create_context(null, $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ROOTTOPIC)); 
     703        $this->_set_context_data($url, $context, MIDCOM_CONTEXT_URI); 
     704 
    703705        $oldcontext = $this->_currentcontext; 
    704706        $this->_currentcontext = $context; 
     
    19171919        $this->_context[$id][MIDCOM_CONTEXT_ANCHORPREFIX] = ''; 
    19181920        $this->_context[$id][MIDCOM_CONTEXT_REQUESTTYPE] = MIDCOM_REQUEST_CONTENT; 
     1921        $this->_context[$id][MIDCOM_CONTEXT_URI] = $_SERVER['REQUEST_URI']; 
    19191922        $this->_context[$id][MIDCOM_CONTEXT_ROOTTOPIC] = $node; 
    19201923        $this->_context[$id][MIDCOM_CONTEXT_CONTENTTOPIC] = null;