Closed (duplicate)
Project:
Drupal core
Version:
5.1
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2007 at 11:14 UTC
Updated:
12 May 2007 at 18:25 UTC
The table name in sql queries produced by cache.inc is dynamic. The current implementation replaces the table name after calling db_prefix_tables() which results in an incompatibility with a shared table installation of drupal if the cache table is configured not to use the default prefix in settings.php:
$db_prefix = array(
'default' => 'foo_',
'cache' => 'bar_',
)
I attached a patch that resolves this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| cache.inc_.patch | 3.08 KB | mkalkbrenner |
Comments
Comment #1
mkalkbrennerAddition:
In the case described above cache.inc always queries foo_cache instead of bar_cache.
Comment #2
gábor hojtsyPatch for Drupal 5.x at http://drupal.org/node/136837