mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 05:42:40 +01:00
ChangesetParseCache
This commit is contained in:
parent
a997e77693
commit
2b7b03ad0c
2 changed files with 15 additions and 9 deletions
|
@ -404,12 +404,14 @@ class DifferentialChangesetParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = null;
|
$data = null;
|
||||||
/*
|
|
||||||
|
$changeset = new DifferentialChangeset();
|
||||||
|
$conn_r = $changeset->establishConnection('r');
|
||||||
$data = queryfx_one(
|
$data = queryfx_one(
|
||||||
smc_get_db('cdb.differential', 'r'),
|
$conn_r,
|
||||||
'SELECT * FROM changeset_parse_cache WHERE id = %d',
|
'SELECT * FROM %T WHERE id = %d',
|
||||||
|
$changeset->getTableName().'_parse_cache',
|
||||||
$this->changesetID);
|
$this->changesetID);
|
||||||
*/
|
|
||||||
|
|
||||||
if (!$data) {
|
if (!$data) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -479,14 +481,15 @@ class DifferentialChangesetParser {
|
||||||
$cache = json_encode($cache);
|
$cache = json_encode($cache);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/*
|
$changeset = new DifferentialChangeset();
|
||||||
|
$conn_w = $changeset->establishConnection('w');
|
||||||
queryfx(
|
queryfx(
|
||||||
smc_get_db('cdb.differential', 'w'),
|
$conn_w,
|
||||||
'INSERT INTO changeset_parse_cache (id, cache) VALUES (%d, %s)
|
'INSERT INTO %T (id, cache) VALUES (%d, %s)
|
||||||
ON DUPLICATE KEY UPDATE cache = VALUES(cache)',
|
ON DUPLICATE KEY UPDATE cache = VALUES(cache)',
|
||||||
|
$changeset->getTableName().'_parse_cache',
|
||||||
$this->changesetID,
|
$this->changesetID,
|
||||||
$cache);
|
$cache);
|
||||||
*/
|
|
||||||
} catch (QueryException $ex) {
|
} catch (QueryException $ex) {
|
||||||
// TODO: uhoh
|
// TODO: uhoh
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,16 @@ phutil_require_module('arcanist', 'difference');
|
||||||
phutil_require_module('arcanist', 'parser/diff');
|
phutil_require_module('arcanist', 'parser/diff');
|
||||||
|
|
||||||
phutil_require_module('phabricator', 'applications/differential/constants/changetype');
|
phutil_require_module('phabricator', 'applications/differential/constants/changetype');
|
||||||
|
phutil_require_module('phabricator', 'applications/differential/storage/changeset');
|
||||||
phutil_require_module('phabricator', 'applications/differential/storage/diff');
|
phutil_require_module('phabricator', 'applications/differential/storage/diff');
|
||||||
phutil_require_module('phabricator', 'applications/files/uri');
|
phutil_require_module('phabricator', 'applications/files/uri');
|
||||||
|
phutil_require_module('phabricator', 'storage/queryfx');
|
||||||
|
|
||||||
phutil_require_module('phutil', 'filesystem');
|
phutil_require_module('phutil', 'filesystem');
|
||||||
phutil_require_module('phutil', 'filesystem/tempfile');
|
phutil_require_module('phutil', 'filesystem/tempfile');
|
||||||
phutil_require_module('phutil', 'future/exec');
|
phutil_require_module('phutil', 'future/exec');
|
||||||
phutil_require_module('phutil', 'markup');
|
phutil_require_module('phutil', 'markup');
|
||||||
|
phutil_require_module('phutil', 'markup/syntax/engine/default');
|
||||||
phutil_require_module('phutil', 'utils');
|
phutil_require_module('phutil', 'utils');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue