Help witch caching |
[eluser]AndyBrandy[/eluser]
Hello, i have this trouble: i'm using cache ($this->output->cache). But i need make special urls. This urls hang on domains. For example: link1:http://test.example.com/c/cool-uri is needed url. But somewhere is url is link2: http://not-wish-domain.exaexample.com/c/cool-uri Problem is when "link1" is in cache, then "link2" redirect on "link1" is never used, because controller is replaced by cache.. I dont understand this, because "cache_id" or "uri" is md5() full url => "link1" isnt "link2" and consequently cache for "link2" should't be. What can i do? thx
[eluser]AndyBrandy[/eluser]
Hello, i have finaly found where is problem. "Cache id - url" is generated from base_url... Code: $uri = $CI->config->item('base_url') Solution is change to Code: $uri = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
[eluser]AndyBrandy[/eluser]
...this changes are in libraries/Output.php If have somebody better solution, i welcome it... |
Welcome Guest, Not a member yet? Register Sign In |