Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
it would help the code in Schrodicache a great deal if the created time for items had a better granularity than a second.
replacing time() with microtime(TRUE) greatly increases the hit rate from APC when using Schrodicache. simple patch against 7.x-1.x attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2259103-2.patch | 434 bytes | Anonymous (not verified) |
microtime-created.patch | 424 bytes | Anonymous (not verified) |
Comments
Comment #1
msonnabaum CreditAttribution: msonnabaum commentedI agree with the general idea, but I would prefer to see it rounded a bit. Surely we don't need the full precision here.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedseems reasonable, new patch does that.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
catchCommitted/pushed to 7.x-1.x, thanks!
Comment #8
Jeremy CreditAttribution: Jeremy commentedComment #9
Jeremy CreditAttribution: Jeremy commentedWe had to undo this change as it cased a regression. For solutions like Schrodicache preferring higher precision, use $cache->created_microtime if existing instead of $cache->created.
http://cgit.drupalcode.org/memcache/commit/?id=a6a1ca8