What would the 0.9.7 equivalent be for 0.9.6’s
Timing Tags:
MySQL: [^qt], [^q] request(s), PHP: [^p], total: [^t], document retrieved from [^s]
I tried [[^qt]] (and even [[++qt]]), etc, but those didn’t to work... Will timing tags still be present 0.9.7+ ?
Update:
In reviewing the 0.9.7 DBAPI class, I do see where the values in question get set (as attributes of the xpdo object),
however I am still tracking down whether or not these values get declared as timing tags or the like.
//<?php
$this->xpdo->queryTime= $this->xpdo->queryTime + $totaltime;
$this->xpdo->executedQueries= $this->xpdo->executedQueries + 1;
In modresponse.class.php (Line # 96) it appears timing tags are being set in the Legacy tag format!
$this->modx->resource->_output= str_replace("[^q^]", $queries, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[^qt^]", $queryTime, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[^p^]", $phpTime, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[^t^]", $totalTime, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[^s^]", $source, $this->modx->resource->_output);
Updating to the following should correct the issue upon building a
case ’^’: statement in the parser:
$this->modx->resource->_output= str_replace("[[^q]]", $queries, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[[^qt]]", $queryTime, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[[^p]]", $phpTime, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[[^t]]", $totalTime, $this->modx->resource->_output);
$this->modx->resource->_output= str_replace("[[^s]]", $source, $this->modx->resource->_output);
Should I will update the SVN with these changes, or did we have another idea in mind?