mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Caching fixes.
This commit is contained in:
@@ -55,6 +55,12 @@ class ecache {
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function getMD5()
|
||||||
|
{
|
||||||
|
return $this->CachePageMD5;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
* @param string $query
|
* @param string $query
|
||||||
|
@@ -934,6 +934,7 @@ class e_media
|
|||||||
|
|
||||||
if($data = $cache->retrieve($type,360,true))
|
if($data = $cache->retrieve($type,360,true))
|
||||||
{
|
{
|
||||||
|
$cache->setMD5(null);
|
||||||
return e107::unserialize($data);
|
return e107::unserialize($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -966,7 +967,8 @@ class e_media
|
|||||||
|
|
||||||
$data = e107::serialize($icons);
|
$data = e107::serialize($icons);
|
||||||
|
|
||||||
$cache->set($type,$data,true);
|
$cache->set($type,$data,true);
|
||||||
|
$cache->setMD5(null);
|
||||||
return $icons;
|
return $icons;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -23,7 +23,7 @@ if(!empty($parm))
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$cached = false;
|
|
||||||
|
|
||||||
if(false === $cached)
|
if(false === $cached)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user