Needs work
Project:
Drupal core
Version:
main
Component:
cache system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Apr 2015 at 14:28 UTC
Updated:
7 Jan 2022 at 08:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pounardComment #2
pounardComment #5
berdirSounds like a very slow environment, but makes sense.
Comment #6
pounardThis mostly due to the NFS file system mounted in my development vm.
Comment #7
webchickThis is undoing a recommendation from Drupal 7 https://www.drupal.org/update/modules/6/7#time, where we made a concerted effort to remove all instances of time() for performance. However, in grepping I see some time()s have sneaked back into Drupal 8, mostly in tests.
So we can commit this, but I'm just curious if moving from 3 to 5 or 10 or any other arbitrary number fixes the problem too?
Comment #8
pounardIt may fix the problem, but testing a slower cache backend or on a remote host might arbitrary raise the limit. I'm convinced that calling time() 3 times is non significant side by side with a hundred queries to a remote backend such as Redis, Memcache, MySQL (this test is shared for all backends). I'm also concerned about the fact that just changing the number might also have an impact if we add more tests in the same class and make the whole slower. A thing I'm not sure of at this point is whether or not the REQUEST_TIME constant is the same across all launched tests at once when working in CLI, case in which it would be definitely unreliable?
Comment #9
mgiffordRe-uploading patch for the bots.
Comment #18
kristen polSee possibly related issues noted here:
https://www.drupal.org/project/drupal/issues/3112283#comment-13605217
Comment #21
jeroentClosing this as a duplicate. Since REQUEST_TIME is deprecated this will be replaced anyway.
Comment #22
berdirThis is not the same thing. this isn't about request time being deprecated, the issue was created before that deprecation, it's about using something functionally different (request time vs current time when using the time service).