? ? Pending

User tests: Successful: Unsuccessful:

avatar n3t
n3t
25 Jan 2023

Cache LifeTime is in minutes, not seconds, 10 years value should be 5 259 600, not 315 576 000.

Summary of Changes

Change cache time to correct number,

Testing Instructions

PHP 7.4.4, 32bits (yeah, not proud of it, just terrible hosting), Memcached enabled

Actual result BEFORE applying this Pull Request

As cache time is multiplied by 60 in CacheStorage constructor, setting to 315 576 000 to 18 934 560 000,
which on 32bits PHP was converted to float, giving
PHP Warning: Memcached::set() expects parameter 3 to be int, float given in /libraries/src/Cache/Storage/MemcachedStorage.php on line 260

Expected result AFTER applying this Pull Request

No warning.

Additional info

Introduced by #38490, @alikon please review this, thanks

avatar joomla-cms-bot joomla-cms-bot - change - 25 Jan 2023
Category Libraries
avatar n3t n3t - open - 25 Jan 2023
avatar n3t n3t - change - 25 Jan 2023
Status New Pending
avatar Quy Quy - test_item - 27 Jan 2023 - Tested successfully
avatar Quy
Quy - comment - 27 Jan 2023

I have tested this item successfully on 2c1379d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39714.

avatar laoneo
laoneo - comment - 27 Jan 2023

@n3t can you also update the setLifeTime function what should be the input here. At the moment it is not clear if seconds or minutes are expected.

avatar n3t n3t - change - 27 Jan 2023
Labels Added: ?
avatar Quy Quy - alter_testresult - 27 Jan 2023 - Quy: Tested successfully
avatar alikon alikon - test_item - 28 Jan 2023 - Tested successfully
avatar alikon
alikon - comment - 28 Jan 2023

I have tested this item successfully on 9a763e9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39714.

avatar Quy Quy - change - 28 Jan 2023
Status Pending Ready to Commit
avatar Quy
Quy - comment - 28 Jan 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39714.

avatar fancyFranci fancyFranci - change - 3 Feb 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-02-03 20:44:12
Closed_By fancyFranci
Labels Added: ?
avatar fancyFranci fancyFranci - close - 3 Feb 2023
avatar fancyFranci fancyFranci - merge - 3 Feb 2023
avatar fancyFranci
fancyFranci - comment - 3 Feb 2023

Thank you very much

Add a Comment

Login with GitHub to post a comment