Commented out cache usage in Model.

This commit is contained in:
Josh Sherman 2011-11-01 19:05:25 -04:00
parent baa291d88b
commit 575a2f0914
2 changed files with 6 additions and 6 deletions

View file

@ -329,7 +329,7 @@ class Model extends Object
if (isset($cache_key))
{
$cached = $this->cache->get($cache_key);
//$cached = $this->cache->get($cache_key);
}
if (isset($cached) && $cached)
@ -342,7 +342,7 @@ class Model extends Object
if (isset($cache_key))
{
$this->cache->set($cache_key, $this->records);
//$this->cache->set($cache_key, $this->records);
}
}
}
@ -956,7 +956,7 @@ class Model extends Object
if ($this->caching)
{
$this->cache->delete('PICKLES-' . $this->datasource . '-' . $this->table . '-' . $this->record[$this->id]);
//$this->cache->delete('PICKLES-' . $this->datasource . '-' . $this->table . '-' . $this->record[$this->id]);
}
}

View file

@ -4358,7 +4358,7 @@ class Model extends Object
if (isset($cache_key))
{
$cached = $this->cache->get($cache_key);
//$cached = $this->cache->get($cache_key);
}
if (isset($cached) && $cached)
@ -4371,7 +4371,7 @@ class Model extends Object
if (isset($cache_key))
{
$this->cache->set($cache_key, $this->records);
//$this->cache->set($cache_key, $this->records);
}
}
}
@ -4985,7 +4985,7 @@ class Model extends Object
if ($this->caching)
{
$this->cache->delete('PICKLES-' . $this->datasource . '-' . $this->table . '-' . $this->record[$this->id]);
//$this->cache->delete('PICKLES-' . $this->datasource . '-' . $this->table . '-' . $this->record[$this->id]);
}
}