Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* $Id: class_datacache.php 3006 2007-04-11 06:14:56Z Tikitiki $
| * $Id: class_datacache.php 3124 2007-06-06 04:56:26Z chris $
|
*/
class datacache
| */
class datacache
|
Zeile 59 | Zeile 59 |
---|
global $db, $mybb; if($mybb->config['cache_store'] == "files") {
|
global $db, $mybb; if($mybb->config['cache_store'] == "files") {
|
if($hard) {
| if(!isset($this->cache[$name]) || $hard) {
|
@include(MYBB_ROOT."inc/cache/".$name.".php");
|
@include(MYBB_ROOT."inc/cache/".$name.".php");
|
| $this->cache[$name] = $$name;
|
}
|
}
|
else { @include_once(MYBB_ROOT."inc/cache/".$name.".php"); } $this->cache[$name] = $$name; unset($$name);
| |
} else {
| } else {
|
Zeile 79 | Zeile 74 |
---|
$this->cache[$data['title']] = unserialize($data['cache']); } }
|
$this->cache[$data['title']] = unserialize($data['cache']); } }
|
|
|
if(isset($this->cache[$name])) { return $this->cache[$name];
| if(isset($this->cache[$name])) { return $this->cache[$name];
|