Welcome Guest, Not a member yet? Register   Sign In
Why CodeIgniter free_result dont work?
#1

(This post was last modified: 06-18-2022, 11:26 PM by muyodanu.)

$query = $this->db->query("SELECT * FROM Website");
$websites = $query->result_array();
echo 'current mem website query:';
echo size_convert(memory_get_usage()) . " <br>";

$query->free_result();
echo size_convert(memory_get_usage()) . " <br>";

The memory did not change[Image: frown.gif]


some great live sex sites:
https://livesexcams.cc/category/sex-cams/
https://sexcams.fans/category/porn-cams/
https://freelivesexcams.me/category/bbw-cams/
Reply
#2

@muyodanu,

What version of CI are you using?
Reply
#3

One possible reason is that the memory cleared is allocated by the database program and not by PHP. memory_get_usage() only reports the memory used by PHP.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB