Page MenuHomePhorge

D25833.1736550373.diff
No OneTemporary

D25833.1736550373.diff

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

Mime Type
text/plain
Expires
Fri, Jan 10, 23:06 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1109434
Default Alt Text
D25833.1736550373.diff (683 B)

Event Timeline