Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Output cache library does not support configured language. #137

Closed
bitbucket-import opened this Issue · 1 comment

2 participants

@bitbucket-import

Steps to reproduce:

  1. Enable output cache ( $this->output->cache(1); ) in controller.

  2. Change language in config.php

  3. Refresh the page.

Result:
Refreshed page does not contains selected language.

Excepted result:
Refreshed page contains selected language.

Workaround:

Change file: Output.php
Line: 400

{{{
#!php

$uri = $CFG->item('base_url').
$CFG->item('index_page').
$URI->uri_string .
$CFG->item('language');
}}}

and line: 358

{{{
#!php

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

}}}

@narfbg
Owner

If anybody is changing their configuration, then surely they can also delete the cache files while doing it. Trying to detect such changes dynamically isn't justified.

@narfbg narfbg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.