You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a battle is created, cache unique data of the foe. Upon the battle being restarted, do a quick comparison of the battle creation cache to the unique data of the foe, and if the data is the same, use the cached data instead of performing additional (and unnecessary) database queries of the foe.
Details
Currently, a simple check of the foe's roster hash should suffice.
if ( $_SESSION['Absolute']['Battle']['Foe']['Roster_Hash'] === $Foe['Roster_Hash'] )
{
// Use the existing session data to restart the battle.
}
else
{
// Use the data stored in $Foe to restart the battle.
}
The text was updated successfully, but these errors were encountered:
Description
When a battle is created, cache unique data of the foe. Upon the battle being restarted, do a quick comparison of the battle creation cache to the unique data of the foe, and if the data is the same, use the cached data instead of performing additional (and unnecessary) database queries of the foe.
Details
Currently, a simple check of the foe's roster hash should suffice.
The text was updated successfully, but these errors were encountered: