This doesn’t appear to be a valid number.
-
After the latest updates (v1.5.8), we started getting the message “This doesn’t appear to be a valid number.” on the configuration page.
Upon investigation, this is caused because we had define(‘WP_REDIS_MAXTTL’, ‘600’); set as a string and the is_int was failing in admin-page.php
Changing to define(‘WP_REDIS_MAXTTL’, 600); removed the notice.
Many pages recommend to use the TTL as string. For example the first result if you google “WP_REDIS_MAXTTL” (https://www.tinywp.in/recommend-redis-object-cache-plugin-settings/) has it in string.
My question is whether having it as string will have any adverse effects and/or cause the keys to never expire, or it’s just an issue with the notice.
- The topic ‘This doesn’t appear to be a valid number.’ is closed to new replies.