Ticket #1356 (closed defect: fixed)

Opened 11 months ago

Last modified 10 months ago

APC cache not fetching the right way

Reported by: desfrenes Owned by: jwage
Priority: minor Milestone:
Component: Attributes Version: 0.11.0
Severity: Keywords: apc cache fetch
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description

I get errors with apc result and query cache enabled:

Warning: unserialize() expects parameter 1 to be string, array given in C:phpincludesDoctrineQueryAbstract.php on line 1097

This modification in Doctrine_Cache_Apc::fetch() solved the problem:

    public function fetch($id, $testCacheValidity = true)
    {
        $tmp = apc_fetch($id);
        if(is_array($tmp))
        {
            return $tmp[0];
        }
        return false;
    }

Change History

Changed 10 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from Unknown to 1.0.0-RC2

Changed 10 months ago by anonymous

  • milestone New deleted

Milestone New deleted

Note: See TracTickets for help on using tickets.