diff options
author | w0den <w0den@live.com> | 2015-05-02 16:53:33 +0200 |
---|---|---|
committer | w0den <w0den@live.com> | 2015-05-02 16:53:33 +0200 |
commit | 0b978ddf678281ad8c1ab263040fd108be6c926f (patch) | |
tree | 2a792934ec99c69f1be3acf51dc4852e78aaca88 /system/helpers/string_helper.php | |
parent | 8cb6f3676ccf84c9c12e056cc93caa767cd16ccd (diff) |
Bug Fix manually delete caching method
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.
Diffstat (limited to 'system/helpers/string_helper.php')
0 files changed, 0 insertions, 0 deletions