|
@@ -2651,7 +2651,7 @@ function cache_get_data($key, $ttl = 120)
|
|
$st = microtime();
|
|
$st = microtime();
|
|
}
|
|
}
|
|
|
|
|
|
- $key = md5($boardurl . filemtime($sourcedir . '/Load.php')) . '-SMF-' . strtr($key, ':', '-');
|
|
+ $key = md5($boardurl . filemtime($sourcedir . '/Load.php')) . '-SMF-' . strtr($key, ':/', '-_');
|
|
|
|
|
|
switch ($cache_accelerator)
|
|
switch ($cache_accelerator)
|
|
{
|
|
{
|
|
@@ -2698,7 +2698,8 @@ function cache_get_data($key, $ttl = 120)
|
|
|
|
|
|
if (file_exists($cachedir . '/data_' . $key . '.php') && filesize($cachedir . '/data_' . $key . '.php') > 10)
|
|
if (file_exists($cachedir . '/data_' . $key . '.php') && filesize($cachedir . '/data_' . $key . '.php') > 10)
|
|
{
|
|
{
|
|
- require($cachedir . '/data_' . $key . '.php');
|
|
+
|
|
|
|
+ @include($cachedir . '/data_' . $key . '.php');
|
|
if (!empty($expired) && isset($value))
|
|
if (!empty($expired) && isset($value))
|
|
{
|
|
{
|
|
@unlink($cachedir . '/data_' . $key . '.php');
|
|
@unlink($cachedir . '/data_' . $key . '.php');
|