Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2607393
D25833.1731141860.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
683 B
Referenced Files
None
Subscribers
None
D25833.1731141860.diff
View Options
diff --git a/src/infrastructure/cache/PhutilAPCKeyValueCache.php b/src/infrastructure/cache/PhutilAPCKeyValueCache.php
--- a/src/infrastructure/cache/PhutilAPCKeyValueCache.php
+++ b/src/infrastructure/cache/PhutilAPCKeyValueCache.php
@@ -38,12 +38,16 @@
return $results;
}
- public function setKeys(array $keys, $ttl = null) {
+ public function setKeys(array $keys, $ttl = 0) {
static $is_apcu;
if ($is_apcu === null) {
$is_apcu = self::isAPCu();
}
+ if ($ttl === null) {
+ $ttl = 0;
+ }
+
// NOTE: Although modern APC supports passing an array to `apc_store()`,
// it is not supported by older version of APC or by HPHP.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 08:44 (6 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
962765
Default Alt Text
D25833.1731141860.diff (683 B)
Attached To
Mode
D25833: APC: Set ttl to 0 when ttl is not given
Attached
Detach File
Event Timeline
Log In to Comment