|
Posted by xclarky on 09/28/27 11:38
"What I'd like to do, is load the array only one time, and keep that
loaded so the page doesn't recreate the array each time, thus
minimizing the server side array creation."
Have you considered using sessions? You could use them to create a
temporary cache of the array quite easily.
<?php
session_start();
if (!isset($_SESSION['array_cache'])) {
$array = array('value', 'value');
$_SESSION['array_cache'] = $array;
} else {
$array = $_SESSION['array_cache'];
}
?>
Navigation:
[Reply to this message]
|