Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2879788
D25642.1737063074.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
725 B
Referenced Files
None
Subscribers
None
D25642.1737063074.diff
View Options
diff --git a/src/applications/celerity/controller/CelerityResourceController.php b/src/applications/celerity/controller/CelerityResourceController.php
--- a/src/applications/celerity/controller/CelerityResourceController.php
+++ b/src/applications/celerity/controller/CelerityResourceController.php
@@ -59,6 +59,7 @@
}
$cache = null;
+ $cache_key = null;
$data = null;
if ($is_cacheable && $is_locally_cacheable && !$dev_mode) {
$cache = PhabricatorCaches::getImmutableCache();
@@ -98,7 +99,7 @@
$data = $xformer->transformResource($path, $data);
}
- if ($cache) {
+ if ($cache && $cache_key !== null) {
$cache->setKey($cache_key, $data);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 21:31 (2 w, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1118981
Default Alt Text
D25642.1737063074.diff (725 B)
Attached To
Mode
D25642: Initialize $cache_key variable in CelerityResourceController.php
Attached
Detach File
Event Timeline
Log In to Comment