Welcome Guest, Not a member yet? Register   Sign In
Cache produces md5 based on unexpected URI


CI's built-in caching uses an md5 function based on a incorrect URI - there are too many forward slashes.

In system/libraries/Output.php line 309:

$uri =    $CI->config->item('base_url').

$CI->config->item('base_url') ends with a /, and $CI->uri->uri_string() begins with a /, resulting in a $uri variable like this: http://www.mysite.com//mycontroller

I'm using a little bit of code to delete cached pages on a relevant database UPDATE, and I'm replicating the bug, and producing a URI with too many forward slashes to find the correct hash and delete the right cached page.

Would be great if this could be fixed in 2.0.

Otherwise caching is brilliant, SO EASY and it really works - thank you Ellis Labs!

Theme © iAndrew 2016 - Forum software by © MyBB