You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. the c ache is never used, since the DateInterval is not correctly used to compare the elapsed time, but just formatted as seconds. A 2-day interval will emit "0" when ->format('%s') is called since it does not internally perform the date calculations, but is just a structure to hold the date/month/hour/whatever values.
Note:
The DateInterval::format() method does not recalculate carry over points in time strings nor in date segments. This is expected because it is not possible to overflow values like "32 days" which could be interpreted as anything from "1 month and 4 days" to "1 month and 1 day".
The text was updated successfully, but these errors were encountered:
The docs state that you should set cache timeout like so:
Which is correct, but potentially misleading since if you do that:
.. the c ache is never used, since the DateInterval is not correctly used to compare the elapsed time, but just formatted as seconds. A 2-day interval will emit "0" when
->format('%s')
is called since it does not internally perform the date calculations, but is just a structure to hold the date/month/hour/whatever values.The text was updated successfully, but these errors were encountered: