DDC-297: XCache caching backend doesn't work: XCache doesn't support storing objects (+patch) #369

Closed
opened 2026-01-22 12:36:13 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 1, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user antenna:

XCache opcode cacher doesn't support storing values of object and resource types in the cache. But Doctrine passes object data to the cache backend (for example, Class Metadata), which cause Apache to SEGFAULT on value retrieving attempt. Data should be serialized via serialize() function prior to storing, and deserialized via unserialize() after retrieving from cache.

Please find small patch with minor modifications to *doFetch() and *doSave() methods of XcacheCache class attached.

Originally created by @doctrinebot on GitHub (Feb 1, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user antenna: XCache opcode cacher doesn't support storing values of object and resource types in the cache. But Doctrine passes object data to the cache backend (for example, Class Metadata), which cause Apache to SEGFAULT on value retrieving attempt. Data should be serialized via serialize() function prior to storing, and deserialized via unserialize() after retrieving from cache. Please find small patch with minor modifications to *doFetch() and *doSave() methods of XcacheCache class attached.
admin added the Bug label 2026-01-22 12:36:13 +01:00
admin closed this issue 2026-01-22 12:36:13 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 9, 2010):

Comment created by @beberlei:

Fixed, can you verify?

@doctrinebot commented on GitHub (Feb 9, 2010): Comment created by @beberlei: Fixed, can you verify?
Author
Owner

@doctrinebot commented on GitHub (Feb 9, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 9, 2010): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/7fcdfef6591af08a08d4

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/7fcdfef6591af08a08d4 - [10337_doctrine-xcache.patch](https://gist.github.com/7fcdfef6591af08a08d4#file-10337_doctrine-xcache-patch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#369