$cache->get()
und $cache->set()
should be the methods.<input name='whatever' value='blah' />
$request->variable('whatever', '')
$whatever = $request->variable('whatever', '');
$whatever = $request->variable('whatever', 0);
Code: Select all
$sql = 'SELECT * FROM ' . USER_TABLE . ' WHERE user_whatever = ' . (int) $whatever;
Code: Select all
$sql = 'SELECT * FROM ' . USERS_TABLE . " WHERE user_whatever = '" . $db->sql_escape($whatever) . "'";
Code: Select all
session_start();
echo "SESSION VAR: ".$_SESSION["T"]."<br />";
$_SESSION["T"]="TEST SESSION SET";
So, if I am understanding this correctly, phpBB 3.1 handles all session data now through a Db table, meaning everytime a page is reloaded the server has to query all user data over and over again, in addition to all the forum and post data and other user data? (Possibly, using memcaching in the process?) Would that not add lots of drain to a server with 1,000's of logged in members?[phpBB Debug] PHP Notice: in file [ROOT]/includes/ucp/ucp_register.php on line 195: Undefined index: T
SESSION VAR:
Code: Select all
$request = $phpbb_container->get('request');