Removed hashing based on some new caching logic I'm still dreaming up.
This commit is contained in:
parent
e104250597
commit
baa291d88b
2 changed files with 4 additions and 4 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
4
jar.php
4
jar.php
|
@ -4315,7 +4315,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))
|
||||
{
|
||||
|
@ -4985,7 +4985,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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue