Created
September 3, 2015 01:11
-
-
Save vihoangson/f566cb3f769dd4c7ec6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function test_db(){ | |
$this->db->start_cache(); | |
$this->db->where('id', 1); | |
$this->db->stop_cache(); | |
$this->db->get('baiviet')->result_array(); | |
echo $this->db->last_query(); | |
echo "<br>"; | |
$this->db->flush_cache(); | |
$this->db->get('baiviet')->result_array(); | |
echo $this->db->last_query(); | |
echo "<br>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment