[development] cache_set trouble

Bèr Kessels ber at webschuur.com
Thu Nov 17 14:43:02 UTC 2005


Hello,

I ma not sure if I stumbled on a critical bug or if I am just reading teh 
wrong docs. Or if I am just being stupid.

I use this: cache_set('gallery_'. $node->nid, $gallery, CACHE_TEMPORARY); 
To define a cache chnuk for every $gallery object ($gallery is an array with 
all $image node objects preloaded)

But, when I do so everything breaks enomously. I get a fatal error (something 
with unlocked tables)

Any help would be appreciated. And I really hope this is not something broken 
in core, because we could easily do without new bugs every day. :)

--------------------------------------
Warning: sprintf(): Too few arguments 
in /var/www/staging/includes/database.inc on line 158
 
 Fatal error: Query was empty query: 
in /var/www/staging/includes/database.mysql.inc on line 99
 
 Fatal error: Table 'sessions' was not locked with LOCK TABLES query: UPDATE 
sessions SET uid = 2, cache = 0, hostname = '81.11.226.132', session = 
'messages|a:0:{}watchdog_overview_filter|s:3:\"all\";', timestamp = 
1132238132 WHERE sid = '06ade4989cd77ea1fec28bcb8ac426c6' 
in /var/www/staging/includes/database.mysql.inc on line 99
 
 Warning: Unknown(): A session is active. You cannot change the session 
module's ini settings at this time. in Unknown on line 0
--------------------------------------------
 Bèr
-- 
 [ Bèr Kessels | Drupal services www.webschuur.com ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20051117/04c57024/attachment.pgp


More information about the development mailing list