Page MenuHomePhorge

APC: Set ttl to 0 when ttl is not given
ClosedPublic

Authored by mainframe98 on Oct 27 2024, 12:59.
Tags
None
Referenced Files
F3473344: D25833.1744751604.diff
Mon, Apr 14, 21:13
F3400091: D25833.1744553596.diff
Sat, Apr 12, 14:13
F3390202: D25833.1744463731.diff
Fri, Apr 11, 13:15
F3387899: D25833.1744442909.diff
Fri, Apr 11, 07:28
F3369668: D25833.1744215971.diff
Tue, Apr 8, 16:26
F3369667: D25833.1744215969.diff
Tue, Apr 8, 16:26
F3362011: D25833.1744058716.diff
Sun, Apr 6, 20:45
F3346154: D25833.1743696192.diff
Wed, Apr 2, 16:03

Details

Summary

Passing null as a value for parameter $ttl is deprecated.
Omitting the parameter is considered to be equivalent to 0.

Bug: T15064

Test Plan
  • Looked in the deprecation log and did not see a deprecation message from apc.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 27 2024, 13:13
src/infrastructure/cache/PhutilAPCKeyValueCache.php
41

let's also default to 0 here?

  • APC: Change the setKeys $ttl parameter default to 0
mainframe98 added inline comments.
src/infrastructure/cache/PhutilAPCKeyValueCache.php
41

I was concerned that that might cause a deprecation warning about non-matching signatures, so I kept this change small.

This revision was automatically updated to reflect the committed changes.
mainframe98 marked an inline comment as done.