| 1 |
********************************************************************
|
| 2 |
D R U P A L M O D U L E
|
| 3 |
********************************************************************
|
| 4 |
Name: fastpath_fscache.module
|
| 5 |
|
| 6 |
Description: File-based page caching mechanism for Drupal rather than
|
| 7 |
storing cached pages in the database.
|
| 8 |
|
| 9 |
Maintainers: Jeremy Andrews <jeremy AT kerneltrap DOT org> and
|
| 10 |
Matt Westgate <drupal AT asitis DOT org> and
|
| 11 |
|
| 12 |
Dependancies:
|
| 13 |
This module works with Drupal HEAD only
|
| 14 |
|
| 15 |
|
| 16 |
INSTALLATION:
|
| 17 |
********************************************************************
|
| 18 |
|
| 19 |
1. Place the entire fastpath_fscache directory into your Drupal
|
| 20 |
modules/ folder.
|
| 21 |
|
| 22 |
NOTE: It is not enough to just enable this module. Please follow all these
|
| 23 |
steps.
|
| 24 |
|
| 25 |
2. Enable this module:
|
| 26 |
|
| 27 |
The module will attempt to create a folder named 'cache' within your Drupal
|
| 28 |
'files' folder.
|
| 29 |
|
| 30 |
3. At the bottom of your settings.php file, add the following PHP code. Change paths
|
| 31 |
as needed. Your cache_inc and file_cache might be different depending on where
|
| 32 |
you install your modules and where you store your files directory.
|
| 33 |
|
| 34 |
$conf = array(
|
| 35 |
'page_cache_fastpath' => 1,
|
| 36 |
'cache_inc' => './sites/all/modules/fastpath_fscache/cache.fs.inc',
|
| 37 |
'file_cache' => '/tmp',
|
| 38 |
);
|
| 39 |
|
| 40 |
This enables file-based caching at the Drupal level, and also sets up
|
| 41 |
the paths to your cache.fs.inc file and cache directory:
|
| 42 |
|
| 43 |
4. Enable page caching by navigating to:
|
| 44 |
|
| 45 |
administer ยป page caching
|
| 46 |
|
| 47 |
5. CRON must configured properly on your site. Take a look at Drupal's
|
| 48 |
INSTALL.txt file for setup instructions. This module relies on cron to
|
| 49 |
remove stale files, so you'll want cron to run often, say every 5-15
|
| 50 |
minutes. In the future we hope to give admins more control over the
|
| 51 |
expiration time.
|