Browse files

Storage: passes data on write to the key() method, so that a closure …

…can make use of it.
  • Loading branch information...
1 parent 7078e8b commit 6fa7f147b58d85261d75a7c35df68ee6b7771725 @daschl daschl committed Dec 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 storage/Cache.php
View
2 storage/Cache.php
@@ -106,7 +106,7 @@ public static function write($name, $key, $data, $expiry = null, array $options
if (is_callable($conditions) && !$conditions()) {
return false;
}
- $key = static::key($key);
+ $key = static::key($key, $data);
if (is_array($key)) {
$expiry = $data;

0 comments on commit 6fa7f14

Please sign in to comment.