Closed (fixed)
Project:
Cache
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2009 at 04:21 UTC
Updated:
11 Sep 2009 at 21:20 UTC
Hello,
If I set a min cache lifetime on performance page, cache begins to give frequently a:
Fatal error: Using $this when not in object context in /var/www/html/sites/all/modules/cache/cache.inc on line 55
Generally it disappears after few refreshes for the very page and come again soon for another.
Then I changed line 55 from this:
$this->flush($cache_flush);
to this:
if(isset($this)) {
$this->flush($cache_flush);
}
as a temporary solution.
And if I use low_priority_updates = 1 for MySQL, situation seems to worsen drastically.
Any suggestions?
Xcache is OK other than this Drupal instance and we are on D 6.13 with the config:
$conf['cache_inc'] = './sites/all/modules/cache/cache.inc';
$conf['session_inc'] = './sites/all/modules/cache/session.inc';
$conf['cache_settings'] = array(
'engines' => array(
'db-engine' => array(
'engine' => 'database',
),
'xc-engine' => array(
'engine' => 'xcache',
),
),
'schemas' => array(
'db-schema' => array(
'db-engine',
),
'xc-schema' => array(
'xc-engine',
),
),
'bins' => array(
'default' => 'db-schema',
'cache' => 'xc-schema',
'cache_form' => 'xc-schema',
'cache_filter' => 'xc-schema',
),
);
Comments
Comment #1
doq commentedPlease try changing line:
$this->flush($cache_flush);
to
$cache->flush($cache_flush);
Comment #2
doq commentedComment #3
chawl commentedYes, error seems to disappear even with a high load simulation.
Thank you for your fast consideration :)
Comment #4
doq commented