Vergleich inc/class_datacache.php - 1.8.34 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 134Zeile 134
			$query = $db->simple_select("datacache", "title,cache");
while($data = $db->fetch_array($query))
{

			$query = $db->simple_select("datacache", "title,cache");
while($data = $db->fetch_array($query))
{

				// use PHP's own unserialize() for performance reasons
$this->cache[$data['title']] = unserialize($data['cache'], array('allowed_classes' => false));

				// use native_unserialize() over my_unserialize() for performance reasons
$this->cache[$data['title']] = native_unserialize($data['cache']);

			}
}
}

			}
}
}

Zeile 190Zeile 190
				$query = $db->simple_select("datacache", "title,cache", "title='".$db->escape_string($name)."'");
$cache_data = $db->fetch_array($query);


				$query = $db->simple_select("datacache", "title,cache", "title='".$db->escape_string($name)."'");
$cache_data = $db->fetch_array($query);


				// use PHP's own unserialize() for performance reasons
$data = unserialize($cache_data['cache'], array('allowed_classes' => false));

// Update cache for handler
get_execution_time();





				if($cache_data)
{
// use native_unserialize() over my_unserialize() for performance reasons
$data = native_unserialize($cache_data['cache']);

// Update cache for handler
get_execution_time();

$hit = $this->handler->put($name, $data);





				$hit = $this->handler->put($name, $data);



					$call_time = get_execution_time();
$this->call_time += $call_time;
$this->call_count++;





				$call_time = get_execution_time();
$this->call_time += $call_time;
$this->call_count++;

if($mybb->debug_mode)


					if($mybb->debug_mode)
{
$this->debug_call('set:'.$name, $call_time, $hit);
}
}
else

				{

				{

					$this->debug_call('set:'.$name, $call_time, $hit);

					$data = false;

				}
}
}

				}
}
}

Zeile 220Zeile 227
			}
else
{

			}
else
{

				// use PHP's own unserialize() for performance reasons
$data = unserialize($cache_data['cache'], array('allowed_classes' => false));

				// use native_unserialize() over my_unserialize() for performance reasons
$data = native_unserialize($cache_data['cache']);

			}
}


			}
}