Permalink
Browse files

Changed cached vars names

  • Loading branch information...
1 parent ac79b65 commit b8eed65c59b3147c429f73ee98a8deb3172ced6e @olvlvl olvlvl committed Mar 12, 2012
View
@@ -24,15 +24,15 @@ static public function find_by_request(Request $request, $user=null)
{
global $core;
- $sites = $core->vars['sites'];
+ $sites = $core->vars['cached_sites'];
if (!$sites)
{
try
{
$sites = $core->models['sites']->all;
- $core->vars['sites'] = $sites;
+ $core->vars['cached_sites'] = $sites;
}
catch (Exception\DatabaseConnection $e)
{
@@ -17,7 +17,7 @@ protected function process()
{
$rc = parent::process();
- unset($core->vars['sites']);
+ unset($core->vars['cached_sites']);
return $rc;
}
@@ -31,7 +31,7 @@ protected function process()
'save'
);
- unset($core->vars['sites']);
+ unset($core->vars['cached_sites']);
return $rc;
}
@@ -71,7 +71,7 @@ public function save()
# before saving the site we clear the stes cache.
#
- unset($core->vars['sites']);
+ unset($core->vars['cached_sites']);
return parent::save();
}
@@ -77,13 +77,13 @@ protected function __construct()
if (CACHE_VERSIONS)
{
- $versions = $core->vars['thumbnailer_versions'];
+ $versions = $core->vars['cached_thumbnailer_versions'];
if (!$versions)
{
$versions = $this->collect();
- $core->vars['thumbnailer_versions'] = $versions;
+ $core->vars['cached_thumbnailer_versions'] = $versions;
}
}
else

0 comments on commit b8eed65

Please sign in to comment.