| 1 |
<?php
|
| 2 |
// $Id: fastpath_fscache.install,v 1.2 2007/07/30 20:06:52 weitzman Exp $
|
| 3 |
|
| 4 |
function fastpath_fscache_install() {
|
| 5 |
|
| 6 |
$cache_inc_path = drupal_get_path('module', fastpath_fscache). '/cache.fs.inc';
|
| 7 |
variable_set('cache_inc', $cache_inc_path);
|
| 8 |
|
| 9 |
$code =<<<EOT
|
| 10 |
<pre>
|
| 11 |
$conf = array(
|
| 12 |
'page_cache_fastpath' => 1,
|
| 13 |
'cache_inc' => '$cache_inc_path',
|
| 14 |
'file_cache' => '/tmp',
|
| 15 |
);
|
| 16 |
</pre>
|
| 17 |
EOT;
|
| 18 |
;
|
| 19 |
|
| 20 |
drupal_set_message(t('Fastpath_fscache module installed. Next, add the following lines to your <code>settings.php</code> file. '. $code));
|
| 21 |
}
|
| 22 |
|
| 23 |
// Note: The variable_set() call doesn't really do much except claim the
|
| 24 |
// namespace because this file-based caching system never invokes the db to
|
| 25 |
// retrieve them. These paths still need to be rolled by hand in
|
| 26 |
// settings.php.
|
| 27 |
|