|
| |||
|
|
[Print] Installation - optionalThis page documents additional, optional installation steps you may want to make.
Caching InstallationIf you wish to use caching you will need to:
To get PEAR working in your PHP install is beyond the scope of this document; a couple of pointers though:
see also: PEAR Installation docs Download and install Cache_Lite and as a PEAR package, again, beyond the scope of this document. If PEAR install is all ok you should be able to just run something like:
see also: PEAR CLI install docs To turn on caching within SF:
Excluding files/directories from cachingThere is always likely to be some areas you don't want SF to cache so a simple mechanism to exclude files, paths or part paths is available. To add an exclusion, open SF_cacheconfig.php and edit the $SF_cacheexcludes array to contain the files, paths or part paths you wish SF to exclude from caching. See the next section on testing the cache to confirm your configuration is working. Getting Cache status informationTo get cache status information you can use available maintenance query strings. e.g for simple status use something like: http://localhost/testsite/?sf_f=time and then in the bottom right hand corner of the resulting page will be something like: Page rendered in 0.0126 seconds (CachingOff) Possible caching states are:
Protecting the SF 'admin' pagesIf you haven't restricted access to _SF_modules using Allow/Deny in your httpd.conf then I recommended you do protect the 'admin' directory. There are no obvious risks presented via the admin pages but it should be considered best practice to restrict access to them. _SF_modules/admin/ with a specific directory configuration in httpd.conf, something like: <Directory [DocumentRoot]/testsite/_SF_modules/admin/> #inherits everthing else from previous dir php_value auto_prepend_file none #directory restrictions Order Deny,Allow Allow from locahost </Directory>
|
||
|
|
|
|
phpSiteFramework powered |
|