mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
6d0dbeb77f
Summary: Ref T13513. Syntax highlighting is potentially expensive, and the changeset rendering pipeline can cache it. However, the cache is currently keyed ONLY by Differential changeset ID. Destroy the existing cache and rebuild it with a more standard cache key so it can be used in a more ad-hoc way by inline suggestion snippets. Test Plan: Used Darkconsole, saw cache hits and no more inline syntax highlighting for changesets with many inlines. Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13513 Differential Revision: https://secure.phabricator.com/D21280
7 lines
314 B
SQL
7 lines
314 B
SQL
CREATE TABLE {$NAMESPACE}_differential.differential_changeset_parse_cache (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
cacheIndex BINARY(12) NOT NULL,
|
|
cache LONGBLOB NOT NULL,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY `key_cacheIndex` (cacheIndex)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|