I can answer my own question. NOTHING in the controller function other than the cached output gets executed during the time in which the cache is set.
To test this yourself, do a database INSERT
or something that would be logged somehow (e.g. write to a blank file).
I added the following code below my cache()
statement and it only inserted into the some_table
table the first time I loaded the controller function and not the 2nd time (within the 5 minute span).
$this->db->insert('some_table', array('field_name' => 'value1') );