Skip to content

Commit

Permalink
Setting a lifetime when writing to cache is useless. Lifetimes are on…
Browse files Browse the repository at this point in the history
…ly checked when reading from cache.
  • Loading branch information
Geert De Deckere committed Jul 28, 2009
1 parent f899079 commit 691cc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/fragment.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function save()
$fragment = ob_get_flush();

// Cache the fragment
Kohana::cache($cache_key, $fragment, Fragment::$lifetime);
Kohana::cache($cache_key, $fragment);
}
}

Expand Down

0 comments on commit 691cc2a

Please sign in to comment.