diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-30 01:19:35 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-30 01:19:35 +0100 |
commit | b37d2bc462af918276111d0439592aa445ac6277 (patch) | |
tree | aed6d4d3fae2c8d43d2ba10b41240058d79ffd71 /user_guide_src/source/general | |
parent | 4173823ba1b45955d63cb5e8d60f02312e345bda (diff) |
Add CI_Output::delete_cache()
(an improved version of PR #609)
Diffstat (limited to 'user_guide_src/source/general')
-rw-r--r-- | user_guide_src/source/general/caching.rst | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/user_guide_src/source/general/caching.rst b/user_guide_src/source/general/caching.rst index c40f652ac..48385d6c9 100644 --- a/user_guide_src/source/general/caching.rst +++ b/user_guide_src/source/general/caching.rst @@ -56,5 +56,13 @@ If you no longer wish to cache a file you can remove the caching tag and it will no longer be refreshed when it expires. .. note:: Removing the tag will not delete the cache immediately. It will - have to expire normally. If you need to remove it earlier you - will need to manually delete it from your cache directory.
\ No newline at end of file + have to expire normally. + +If you need to manually delete the cache, you can use the ``delete_cache()`` +method:: + + // Deletes cache for the currently requested URI + $this->output->delete_cache(); + + // Deletes cache for /foo/bar + $this->output->delete_cache('/foo/bar');
\ No newline at end of file |