Skip to content
Snippets Groups Projects
Commit fa17d471 authored by catch's avatar catch
Browse files

Issue #2259823 by beejeebus, Wim Leers: Make cache->created be to the millisecond.

parent e3f9173e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -189,7 +189,7 @@ protected function prepareItem($cache, $allow_invalid) { ...@@ -189,7 +189,7 @@ protected function prepareItem($cache, $allow_invalid) {
public function set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array()) { public function set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array()) {
$cache = new \stdClass(); $cache = new \stdClass();
$cache->cid = $cid; $cache->cid = $cid;
$cache->created = REQUEST_TIME; $cache->created = round(microtime(TRUE), 3);
$cache->expire = $expire; $cache->expire = $expire;
$cache->tags = implode(' ', $this->flattenTags($tags)); $cache->tags = implode(' ', $this->flattenTags($tags));
$checksum = $this->checksumTags($tags); $checksum = $this->checksumTags($tags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment