summaryrefslogtreecommitdiffstats
path: root/system/core/Output.php
AgeCommit message (Collapse)AuthorFilesLines
2022-01-05Merge branch '3.1-stable' into developAndrey Andreev1-1/+1
2022-01-05Close #6021: Suppress possible E_DEPRECATION notices about ↵Andrey Andreev1-1/+1
mbstring.func_overload
2021-12-20Merge pull request #6074 from philsturgeon/ci3-php8Andrey Andreev1-3/+7
CodeIgniter 3.0 on PHP 8
2021-11-17Merge branch 'php80-patch1' of https://github.com/sapics/CodeIgniter into ↵Phil Sturgeon1-1/+0
ci3-php8
2021-10-04Adds PHP 8 in TravisGeorge Petculescu1-2/+7
2021-01-16Fix error in core/Output.php for php8.0sapics1-2/+6
Fix error in array_shift array_map('array_shift', $this->headers) causes error as array_shift(): Argument bcit-ci#1 ($array) must be passed by reference, value given
2020-07-09[ci skip] Merge pull request #5970 from sapics/fix/user-guide-urlAndrey Andreev1-1/+1
Fix user guide url
2020-06-24Fix user guide urlsapics1-1/+1
Replace from https://codeigniter.com/user_guide/* to https://codeigniter.com/userguide3/*
2019-01-02Merge pull request #5662 from jim-parry/copyright2019Instructor, BCIT1-3/+3
Update copyright date to 2019
2018-12-27Update copyright date to 2019Jim Parry1-2/+2
2018-05-18http:// to https://Mehdi Bounya1-2/+2
2018-04-24[ci skip] Close #5479Andrey Andreev1-3/+3
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
2018-01-09Annual copyright updateMaster Yoda1-2/+2
2017-08-05Minor change in _display() method in CI_Output class allowing us to override ↵Erik Nord1-2/+2
output data with an empty string. Without this change CI chooses to use the default "final_output" var; even though we passed an empty string to the method.
2017-06-19Merge branch '3.1-stable' into developAndrey Andreev1-51/+44
Conflicts resolved: system/core/CodeIgniter.php tests/codeigniter/libraries/Form_validation_test.php user_guide_src/source/changelog.rst user_guide_src/source/conf.py user_guide_src/source/installation/downloads.rst user_guide_src/source/installation/upgrading.rst
2017-04-18[ci skip] Reduce nesting levels in CI_OutputAndrey Andreev1-51/+44
2017-03-24Merge branch '3.1-stable' into developAndrey Andreev1-5/+5
Conflicts resolved: system/core/CodeIgniter.php system/core/Common.php system/core/Input.php system/helpers/cookie_helper.php tests/codeigniter/helpers/html_helper_test.php user_guide_src/source/changelog.rst user_guide_src/source/conf.py user_guide_src/source/installation/downloads.rst user_guide_src/source/installation/upgrading.rst user_guide_src/source/libraries/input.rst
2017-02-07Allow to omit trailing slash in config pathsvlakoff1-1/+1
2017-01-19More byte-safetyAndrey Andreev1-5/+5
2017-01-03Update copyright data to 2017Master Yoda1-2/+2
2016-12-31Update copyright data to 2017Master Yoda1-2/+2
2016-12-14Drop all PHP 5.3-related codeAndrey Andreev1-3/+0
2016-12-01Merge branch '3.1-stable' into developAndrey Andreev1-3/+4
2016-12-01Fix #4927Andrey Andreev1-3/+4
2016-10-28Merge branch '3.1-stable' into developAndrey Andreev1-7/+55
Resolved conflicts: system/core/CodeIgniter.php user_guide_src/source/changelog.rst user_guide_src/source/conf.py user_guide_src/source/installation/downloads.rst user_guide_src/source/installation/upgrading.rst user_guide_src/source/libraries/form_validation.rst
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-05-19Fixed PHPDoc parameter name and type discrepanciesKasim Tan1-1/+1
2016-02-27Downgraded log level for some pesky messages to INFOsprakash41-2/+2
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