Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
Reported via the forums: http://forum.codeigniter.com/thread-61774.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
As it was, the static variable was always re-set to an empty array
|
|
|
|
Fixes #3922
|
|
Close #3920
|
|
new MySQLi SSL configuration options to a single ssl_options config item that is an array that will be read to set the individual SSL options.
Signed-off-by: Tim Nolte <noltet@sekisui-spi.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
database configuration documentation to include a list of the new MySQLi driver parameters.
Signed-off-by: Tim Nolte <noltet@sekisui-spi.com>
|
|
|
|
additional database connection options. Uses the DB_driver class encrypt option as the flag for turning on encryption. Also added SSL connection validation with error logging in order to provide users a way to know if they are actually connecting via SSL.
Signed-off-by: Tim Nolte <noltet@sekisui-spi.com>
|
|
|
|
[ci skip] Update Migration lib class reference docs
|
|
|
|
Reported via the forums: http://forum.codeigniter.com/thread-61810.html
|
|
|
|
|
|
Fixed bug - using field_data() on Oracle databases
|
|
When you're using oracle databases and want to retrieve column information through the function field_data($table) you get the following notice:
- Notice: Undefined property: stdClass::$COLUMN_DEFAULT in system/database/drivers/oci8/oci8_driver.php on line 576;
This happens because the oci8 driver tries to access a property that does not exist on query used to get field information. Checking the code we see a small validation to set default value, but the variable $default is not used. So we fix this bug by simply changing:
$retval[$i]->default = $query[$i]->COLUMN_DEFAULT;
to
$retval[$i]->default = $default;
Bug fixed. No more notices and the properly value is set.
|
|
|
|
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
|
|
|
|
|
|
This reverts commit 170ae282338584ebe257d2fb21101ccf84a3f800.
|
|
|
|
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.
|
|
|
|
|
|
|
|
Cache Library Clean-up
|
|
system Driver library.
|
|
|
|
a simple if condition.
|
|
|
|
|
|
- Comments!
- Updates the cache library to validate *both* adapters.
- No longer attempts to set an undefined "memcached" class variable.
- $key variable renamed to $driver_type (more descriptive).
|