Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Refs #4101 - If lifetime is less than 2592000, no need add current time #13

Closed
wants to merge 1 commit into from

4 participants

Kostya Kufta Kohana Builds Kiall Mac Innes Woody Gilk
Kostya Kufta

Refs #4101
If lifetime is less than 2592000, no need add current time

Kostya Kufta yankos Refs #4101
If lifetime is less than 2592000, no need add current time
928cdcb
Kohana Builds
Collaborator

Jenkins Build Starting

Kiall Mac Innes

The build failure appears to be unrelated to this pull..

Kiall Mac Innes

!build

Kohana Builds
Collaborator

Jenkins Build Starting

Kiall Mac Innes

Duplicate of pull #14

Kiall Mac Innes kiall closed this
Kiall Mac Innes kiall reopened this
Kiall Mac Innes

Whoops, They target different branches..

Woody Gilk shadowhand closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 24, 2011
  1. Kostya Kufta

    Refs #4101

    yankos authored
    If lifetime is less than 2592000, no need add current time
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 7 deletions.
  1. +2 −7 classes/kohana/cache/memcache.php
9 classes/kohana/cache/memcache.php
View
@@ -217,13 +217,8 @@ public function set($id, $data, $lifetime = 3600)
// Set the lifetime to maximum cache time
$lifetime = Cache_Memcache::CACHE_CEILING + time();
}
- // Else if the lifetime is greater than zero
- elseif ($lifetime > 0)
- {
- $lifetime += time();
- }
- // Else
- else
+ // Else if the lifetime is less than zero
+ elseif ($lifetime < 0)
{
// Normalise the lifetime
$lifetime = 0;
Something went wrong with that request. Please try again.