From 6969393d0379605818cb4fab1709e7b2273dab62 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 2 Oct 2007 20:04:33 +0000 Subject: added a warning note that caching only works when generating display via a view file. --- user_guide/general/caching.html | 1 + 1 file changed, 1 insertion(+) (limited to 'user_guide/general/caching.html') diff --git a/user_guide/general/caching.html b/user_guide/general/caching.html index 6c7d35f5c..db3725b7a 100644 --- a/user_guide/general/caching.html +++ b/user_guide/general/caching.html @@ -89,6 +89,7 @@ and sent to the requesting user's browser. If it has expired, it will be delete

The above tag can go anywhere within a function. It is not affected by the order that it appears, so place it wherever it seems most logical to you. Once the tag is in place, your pages will begin being cached.

+

Warning: Because of the way CodeIgniter stores content for output, caching will only work if you are generating display for your controller with a view.

Note: Before the cache files can be written you must set the file permissions on your system/cache folder such that it is writable (666 is usually appropriate).

-- cgit v1.2.3-24-g4f1b