Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
memcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
memcache
Commits
a6a1ca8b
Commit
a6a1ca8b
authored
Dec 20, 2014
by
Jeremy
Committed by
Jeremy
Dec 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2335727
by wodenx, Jeremy: Setting $cache->created with msec precision borks page caching
parent
35e47785
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
memcache.inc
memcache.inc
+3
-2
No files found.
memcache.inc
View file @
a6a1ca8b
...
...
@@ -176,13 +176,14 @@ class MemCacheDrupal implements DrupalCacheInterface {
* Implements DrupalCacheInterface::set().
*/
public
function
set
(
$cid
,
$data
,
$expire
=
CACHE_PERMANENT
)
{
$created
=
round
(
microtime
(
TRUE
),
3
);
$created
_microtime
=
round
(
microtime
(
TRUE
),
3
);
// Create new cache object.
$cache
=
new
stdClass
();
$cache
->
cid
=
$cid
;
$cache
->
data
=
is_object
(
$data
)
?
clone
$data
:
$data
;
$cache
->
created
=
$created
;
$cache
->
created
=
REQUEST_TIME
;
$cache
->
created_microtime
=
$created_microtime
;
// Record the previous number of wildcard flushes affecting our cid.
$cache
->
flushes
=
$this
->
wildcardFlushes
(
$cid
);
if
(
$expire
==
CACHE_TEMPORARY
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment