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
F2938215: D25833.1737980819.diff
Sun, Jan 26, 12:26
F2928744: D25833.1737652733.diff
Wed, Jan 22, 17:18
F2878252: D25833.1737019675.diff
Wed, Jan 15, 09:27
F2878251: D25833.1737019673.diff
Wed, Jan 15, 09:27
F2878250: D25833.1737019672.diff
Wed, Jan 15, 09:27
F2877641: D25833.1737004243.diff
Wed, Jan 15, 05:10
F2877604: D25833.1737003462.diff
Wed, Jan 15, 04:57
F2873012: D25833.1736907357.diff
Tue, Jan 14, 02:15

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
Branch
master
Lint
Lint Passed
Unit
Tests Skipped
Build Status
Buildable 1613
Build 1613: arc lint + arc unit

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.