Removed hashing based on some new caching logic I'm still dreaming up.

This commit is contained in:
Josh Sherman 2011-10-30 22:09:12 -04:00
parent e104250597
commit baa291d88b
2 changed files with 4 additions and 4 deletions

View file

@ -286,7 +286,7 @@ class Model extends Object
elseif (ctype_digit((string)$type_or_parameters))
{
$this->loadParameters(array($this->id => $type_or_parameters));
$cache_key = sha1('PICKLES-' . $this->datasource . '-' . $this->table . '-' . $type_or_parameters);
$cache_key = 'PICKLES-' . $this->datasource . '-' . $this->table . '-' . $type_or_parameters;
}
elseif (ctype_digit((string)$parameters))
{
@ -956,7 +956,7 @@ class Model extends Object
if ($this->caching)
{
$this->cache->delete(sha1('PICKLES-' . $this->datasource . '-' . $this->table . '-' . $this->record[$this->id]));
$this->cache->delete('PICKLES-' . $this->datasource . '-' . $this->table . '-' . $this->record[$this->id]);
}
}