Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15330199
D13322.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
870 B
Referenced Files
None
Subscribers
None
D13322.diff
View Options
diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
--- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
+++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
@@ -872,6 +872,15 @@
* @task order
*/
public function getOrderableColumns() {
+ $cache = PhabricatorCaches::getRequestCache();
+ $class = get_class($this);
+ $cache_key = 'query.orderablecolumns.'.$class;
+
+ $columns = $cache->getKey($cache_key);
+ if ($columns !== null) {
+ return $columns;
+ }
+
$columns = array(
'id' => array(
'table' => $this->getPrimaryTableAlias(),
@@ -909,6 +918,8 @@
}
}
+ $cache->setKey($cache_key, $columns);
+
return $columns;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 7:29 AM (2 w, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7378557
Default Alt Text
D13322.diff (870 B)
Attached To
Mode
D13322: Don't spend ridiculous amounts of time rebuilding orderable columns
Attached
Detach File
Event Timeline
Log In to Comment