Permalink
Browse files

Make sure cache writing runs last

  • Loading branch information...
flack committed Feb 2, 2019
1 parent adcca97 commit 67523ebdd7f0b98c8946b22151b559f34750cc8b
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/midcom/application.php
@@ -120,7 +120,7 @@ public function initialize()
$this->uimessages->initialize($this->request);
$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);
}
/* *************************************************************************
@@ -144,9 +144,6 @@ public function codeinit()
* Dynamically execute a subrequest and insert its output in place of the
* 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 as if it was used as primary component.
*
@@ -171,10 +168,6 @@ public function codeinit()
public function dynamic_load($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;
// Determine new Context ID and set current context,

0 comments on commit 67523eb

Please sign in to comment.