Drupal core returns 0 when cache_get is false. apc_fetch returns false. Changed so it returns 0 on failure.

I had some problems with the serialized value. Fixed it to work for me.

Now allows multi-site drupal installs having different cache id's (prefixed with $_SERVER['SERVER_NAME'])

Fixed a watchdog thrown where you forgot the set the watchdog type.

Fixed cache_clear_all where the wrong table was always cleared.

CommentFileSizeAuthor
#1 apc_fixes.patch2.15 KBR.Muilwijk
apc_fixes.patch1.71 KBR.Muilwijk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

R.Muilwijk’s picture

FileSize
2.15 KB

Found another bug in deleting cache

 function apc_handle_delete($key, $bin = 'cache') {
   global $apc_page_stats;
   $apc_page_stats['delete']++;
-  
-  if (!empty($key) && !empty($data)) {
+  if (!empty($key) && !empty($bin)) {
slantview’s picture

Status: Needs review » Closed (fixed)