Skip to content

Commit

Permalink
Make sure cache writing runs last
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Feb 2, 2019
1 parent adcca97 commit 67523eb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/midcom/application.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function initialize()
$this->uimessages->initialize($this->request); $this->uimessages->initialize($this->request);


$this->dispatcher->addListener(KernelEvents::REQUEST, [$this->cache->content, 'on_request'], 10); $this->dispatcher->addListener(KernelEvents::REQUEST, [$this->cache->content, 'on_request'], 10);
$this->dispatcher->addListener(KernelEvents::RESPONSE, [$this->cache->content, 'on_response'], 10); $this->dispatcher->addListener(KernelEvents::RESPONSE, [$this->cache->content, 'on_response'], -10);
} }


/* ************************************************************************* /* *************************************************************************
Expand All @@ -144,9 +144,6 @@ public function codeinit()
* Dynamically execute a subrequest and insert its output in place of the * Dynamically execute a subrequest and insert its output in place of the
* function call. * function call.
* *
* <b>Important Note</b> As with the Midgard Parser, dynamic_load strips a
* trailing .html from the argument list before actually parsing it.
*
* It tries to load the component referenced with the URL $url and executes * It tries to load the component referenced with the URL $url and executes
* it as if it was used as primary component. * it as if it was used as primary component.
* *
Expand All @@ -171,10 +168,6 @@ public function codeinit()
public function dynamic_load($url) public function dynamic_load($url)
{ {
debug_add("Dynamic load of URL {$url}"); debug_add("Dynamic load of URL {$url}");

if (substr($url, -5) == '.html') {
$url = substr($url, 0, -5);
}
$url = midcom_connection::get_url('prefix') . $url; $url = midcom_connection::get_url('prefix') . $url;


// Determine new Context ID and set current context, // Determine new Context ID and set current context,
Expand Down

0 comments on commit 67523eb

Please sign in to comment.