Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcache-3397864
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
memcache-3397864
Commits
a6a1ca8b
Commit
a6a1ca8b
authored
10 years ago
by
Jeremy Andrews
Committed by
Jeremy Andrews
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2335727
by wodenx, Jeremy: Setting $cache->created with msec precision borks page caching
parent
35e47785
No related branches found
Branches containing commit
Tags
7.x-1.4-beta1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
memcache.inc
+3
-2
3 additions, 2 deletions
memcache.inc
with
3 additions
and
2 deletions
memcache.inc
+
3
−
2
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment