How can I run php code once for a Wordpress session. My site reads data from the database and stores it in arrays. At the moment I have functions that are called and each time they are called they load the array from the database which is rather a waste of resource. The data won't change for the duration of the session so it would be good to load up the arrays when the wordpress site is loaded.
Is this possible?