Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Page Cache File Saving path is wrong #1657

Closed
kingster opened this Issue Jul 26, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Hi

For me page cache was being saved but i found that while rendering it was not being used.

I found that in the system/core/Output.php

in the save_cache function the $uri is being taken as

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

whereas it should be

$uri =  $CI->config->item('base_url').
        $CI->config->item('index_page').
        ltrim($CI->uri->uri_string(), '/');;

otherwise the md5 hashes dont match ( due to a left forward slash )

Let me know if others are facing the same problem, or pull in the change in main repository.

Thanks.

Contributor

narfbg commented Oct 23, 2012

Fixed by f5f898f

@narfbg narfbg closed this Oct 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment