summaryrefslogtreecommitdiffstats
path: root/system/core/Output.php
AgeCommit message (Collapse)AuthorFilesLines
2018-01-09[ci skip] Merge pull request #5376 from jim-parry/copyright-updateAndrey Andreev1-2/+2
Annual copyright update Conflicts resolved: system/libraries/Cache/drivers/Cache_apcu.php
2017-04-18[ci skip] Reduce nesting levels in CI_OutputAndrey Andreev1-51/+44
2017-01-19More byte-safetyAndrey Andreev1-5/+5
2017-01-03Update copyright data to 2017Master Yoda1-2/+2
2016-12-01Fix #4927Andrey Andreev1-3/+4
2016-10-28Improve byte-safetyAndrey Andreev1-7/+55
2016-05-20Merge pull request #4638 from kasimtan/phpdoc_fixesAndrey Andreev1-1/+1
[ci skip] Fixed PHPDoc parameter name and type discrepancies
2016-01-20[ci skip] Fix a documentation error on output cache timesAndrey Andreev1-1/+1
2016-01-11[ci skip] Update ellislab.com links to https tooAndrey Andreev1-1/+1
2016-01-11[ci skip] Update codeigniter.com links to httpsAndrey Andreev1-2/+2
2016-01-11[ci skip] Bump year to 2016Andrey Andreev1-2/+2
2015-07-15[ci skip] Revert styleguide violations from PR #3828Andrey Andreev1-3/+3
2015-05-11Improve Cache Query String behaviourw0den1-6/+27
Typically, in most cases, we do not need to cache all the Query String variables. That's why I suggest to improve `Cache Include Query String` behaviour — allow the developer to independently specify which variables should be cached. For example, consider a query to the following URL address: http://site.com/search?q=query&page=2&session=abcd&utm_source=web In this case we don't need to build md5 hash for entire query string, because `session` or `utm_source` can be different for all users. The only variables which should be used for md5 hash should be `q` and `page`. Thus, in `config.php` we can use `$config['cache_query_string'] = array('page', 'q');`. So: `$config['cache_query_string'] = FALSE;` → Cache Include Query String is disabled `$config['cache_query_string'] = TRUE;` → Cache Include Query String is enabled for all `$config['cache_query_string'] = array('page', 'q');` → enabled only for specified variables
2015-05-02Bug Fix manually delete caching methodw0den1-1/+1
According to documentation, to manually delete cache for page "/foo/bar" we should run $this->output->delete_cache('/foo/bar'), but in this case MD5 hash will be calculated for "http://site.com//foo/bar" and this is why, we should pass $uri without beginning slash (ie, "foo/bar"). But the problem is that there is no way to delete cache for home page because: 1) $this->output->delete_cache('/') — MD5 hash will be calculated for "http://site.com//" and cache file will not be deleted. 2) $this->output->delete_cache('') — MD5 hash will be calculated for "http://site.com/%CURRENT_PAGE%" and again, cache file will not be deleted. Trimming the beginning slash, we enable ability to delete cache for home page by calling $this->output->delete_cache('/'). Also, this method will work as specified in the documentation.
2015-04-23Output cache: Fixing a wrong timestamp. Credits to khoggatt (CodeIgniter forum).Ivan Tcholakov1-1/+1
2015-02-03Documentation Fixnatepizzle1-1/+1
Signed-off-by: natepizzle <natepizzle@users.noreply.github.com>
2015-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-3/+3
'Class Loaded' type of messages flood log files when log_threshold is set to 2 (debug). They're now logged as 'info' level. This is manually applying PR #1528, which was created to do the same thing, but became outdated.
2015-01-09Bulk (mostly documentation) updateAndrey Andreev1-3/+3
- Remove PHP version from license notices - Bump year number in copyright notices - Recommend PHP 5.4 or newer to be used - Tell Travis-CI to test on PHP 5.3.0 instead of the latest 5.3 version Related: #3450
2014-12-15Remove output minifierAndrey Andreev1-208/+0
This feature has proven to be problematic and it's not nearly as flexible as a dedicated minifier library like Minify (http://www.minifier.org/, https://github.com/matthiasmullie/minify). The same results in terms of saving traffic can also be achievied via gzip compression (which should also be done on the httpd level, but we also support anyway) and stuff like mod_pagespeed. Reverts PR #965 Related issues as a track record proving how problematic this has been: #2078 #1499 #2163 #2092 #2387 #2637 #2710 #2120 #2171 #2631 #2326 #2795 #2791 #2772 Additionally, the count of contributors suggesting that the only way to fix the minifier problems is to remove it, is around the same as the count of people suggesting the feature to be implemented in the first place. It was experimental anyway ... the experiment failed.
2014-12-04Add 'cache_query_string' configuration optionAndrey Andreev1-3/+14
Close #2349
2014-12-04Another correction following #3384Andrey Andreev1-2/+1
2014-12-03Some polishing following PR #3384Andrey Andreev1-5/+2
2014-12-03Fixed code style. Update changelog. #2349Stefano Mazzega1-3/+3
2014-12-03add querystring to page caching. #2349Stefano Mazzega1-3/+3
2014-12-03add querystring to page caching. #2349Stefano Mazzega1-0/+9
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
2014-08-27Fix #2963Andrey Andreev1-1/+1
Changed all file permissions settings throught the framework and the documentation. Also added configuration settings for CI_Log and CI_Image_lib
2014-04-25Minor fixesvlakoff1-1/+1
2014-03-13Partially revert PR #2190Andrey Andreev1-3/+3
The core shouldn't depend on constants that are not defined by itself
2014-02-26Don't use error suppression on is_dir(), file_exists()Andrey Andreev1-1/+1
2014-02-24Remove a needless check in CI_Output::append_output()Andrey Andreev1-9/+1
2014-02-24Don't use globalsAndrey Andreev1-2/+3
- Use load_class() to get objects during bootstrap process. - Change load_class() to accept a class constructor parameter instead of previously unused class name prefix. - Change CI_Router::__construct() to accept as a parameter.
2014-02-20Don't use error suppression on ini_get() eitherAndrey Andreev1-1/+1
2014-02-112013 > 2014darwinel1-1/+1
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-01-15Merge changes from developAndrey Andreev1-5/+22
2014-01-15Fix #2822: Incorrect usage of fwrite()Andrey Andreev1-13/+31
We only used to check (and not always) if the return value of fwrite() is boolean FALSE, while it is possible that the otherwise returned bytecount is less than the length of data that we're trying to write. This allowed incomplete writes over network streams and possibly a few other edge cases.
2014-01-10Use config_item() in CI_Output::__construct()Andrey Andreev1-3/+1
2014-01-10Compress output before storing it to cache, if output compression is enabledAndrey Andreev1-20/+62
Based on PR #964
2013-11-27[ci skip] Remove a few more spacesAndrey Andreev1-1/+1
2013-10-31Fix #2710Andrey Andreev1-2/+1
2013-10-31Apply trim() on the splitted code elementsAndrey Andreev1-164/+11
2013-10-30Escape PCRE delimitersAndrey Andreev1-2/+2
2013-10-28An alternative to CI_Output::_minify_script_style() using more efficient ↵Andrey Andreev1-5/+97
regexp patterns
2013-10-22Fix CSS minifierAndrey Andreev1-4/+4
2013-10-03re-fixes #2637David Cox Jr1-1/+1
delimiter used for regex bounds found in neg. lookahead causes error using @ delimiter now for this expression
2013-09-24fix #2637David Cox Jr1-1/+1
cleaned up the regex to remove extra qualifiers used character sets where possible for clarity main expression optimized
2013-09-22Fixes Issue 2637David Cox Jr1-1/+1
more elegant way to make sure that the comment is not in a js string var
2013-09-12Fixed coding stylejudge1-3/+8
2013-09-10Fixed coding stylejudge1-9/+13