Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17358

Redis cache never expires with the TTL of 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.13-RC1
    • 3.3.12
    • None
    • None

      Discussion: https://www.phpbb.com/community/viewtopic.php?t=2654422

       

      As per the Redis docs https://redis.io/docs/latest/commands/expire/#appendix-redis-expires there's no default TTL, also TTL of 0 is not supported either.

      If 0 is set for TTL, Redis cached key just never expires and lives forever until got deleted.

       

      Additionally, another Redis doc https://redis.io/docs/latest/commands/set/ mentions that "Since the SET command options can replace SETNXSETEXPSETEXGETSET, it is possible that in future versions of Redis these commands will be deprecated and finally removed."

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: