summaryrefslogtreecommitdiffstats
path: root/system/core/Output.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/core/Output.php')
-rw-r--r--system/core/Output.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 8b7d6efbd..f5521882c 100644
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -564,6 +564,8 @@ class CI_Output {
.$CI->config->item('index_page')
.$CI->uri->uri_string();
+ empty($_SERVER['QUERY_STRING']) OR $uri .= '?'.$_SERVER['QUERY_STRING'];
+
$cache_path .= md5($uri);
if ( ! $fp = @fopen($cache_path, 'w+b'))
@@ -647,7 +649,9 @@ class CI_Output {
$cache_path = ($CFG->item('cache_path') === '') ? APPPATH.'cache/' : $CFG->item('cache_path');
// Build the file path. The file name is an MD5 hash of the full URI
- $uri = $CFG->item('base_url').$CFG->item('index_page').$URI->uri_string;
+ $uri = $CFG->item('base_url').$CFG->item('index_page').$URI->uri_string;
+ empty($_SERVER['QUERY_STRING']) OR $uri .= '?'.$_SERVER['QUERY_STRING'];
+
$filepath = $cache_path.md5($uri);
if ( ! file_exists($filepath) OR ! $fp = @fopen($filepath, 'rb'))
@@ -725,6 +729,7 @@ class CI_Output {
if (empty($uri))
{
$uri = $CI->uri->uri_string();
+ empty($_SERVER['QUERY_STRING']) OR $uri .= '?'.$_SERVER['QUERY_STRING'];
}
$cache_path .= md5($CI->config->item('base_url').$CI->config->item('index_page').$uri);