Drupal 6.x core adds ability to change cache handler implementation by specifying another $conf['cache_inc'] in settings.php:
case DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE: // Allow specifying special cache handlers in settings.php, like // using memcached or files for storing cache information. require_once variable_get('cache_inc', './includes/cache.inc');
or specifying another $conf['session_inc'] session handler implementation:
case DRUPAL_BOOTSTRAP_SESSION: require_once variable_get('session_inc', './includes/session.inc');
My idea was to add ability to change path.inc implementation by specifying $conf['path_inc'] setting in site's settings.php file.
This simple patch achieves this in your Drupal 6.x installation. After applying there will be no more need to patch core path.inc file. You will be able specify different path.inc implementation for different Drupal web-sites when multi-site feature is used.
For example, one web-site uses lots of path aliases and they should be cached in memcached server. Another one uses 10 path aliases so the implementation can be much more optimized to get them all at once from cache.
You can also find this patch in Drupal's Cache module package. You will also find several optimized path.inc implementations there.
| Attachment | Size |
|---|---|
| path_inc-variable-support.patch | 965 bytes |

Comments
Post new comment