[wp-hackers] XCache Variable Storage vs. WP Object Cache
Computer Guru
computerguru at neosmart.net
Sun Sep 16 10:02:36 GMT 2007
Technically XCache only has a variable cache ATM, so that might
explain that limitation >.<
Is it *safe* to serialize all objects coming in and unserialize them
again going out? I know in some other projects I worked on there were
stuff you weren't supposed to serialize or the sky would fall (or
something like that).
I've been searching, but can't find an answer to this:
In PHP, is there an easy way to check if something is an object? I
know PHP's lax (for lack of a better word) (or rather, nonexistent)
datatyping makes this kind of hard, but it would highly improve
performance if I only serialized items that weren't normal
variables....
On 9/16/07, DD32 <wordpress at dd32.id.au> wrote:
> On Sun, 16 Sep 2007 19:31:09 +1000, Computer Guru <computerguru at neosmart.net> wrote:
> > Only thing I can think of is this warning on the XCache site:
> > Warning : At the moment, It is not possible to store resources,
> > callbacks or objects using xcache_* functions.
> >
> >
> > Does WP Object Cache attempt to cache any of these? If so, is there
> > any way of stopping it from doing so?
>
> Theres quite a few Objects being stored in the Object Cache :)
> I dont think any Resources are attempted for caching, and i'd be unsure about callbacks.
>
> using serialize() should convert everything into a string for storing though.
>
> > Thanks.
> >
> > On 9/16/07, Stephane Daury <wordpress at tekartist.org> wrote:
> >>
> >> /me loooove memcache
> >>
> >> But I wish php/memcache would allow for:
> >> - regex for keymapping
> >> - tag keys like done in the Zend Framework
> >>
> >> Stephane
> >>
> >>
> >>
> >> On Sep 16, 2007, at 3:32, Tom Barta wrote:
> >>
> >> >> But it is almost always going to be faster to use a memory-based
> >> >> object storage engine than the built-in file-based method, as
> >> >> retrieving data from memory is orders of magnitude faster than
> >> >> retrieving data from a hard disk.
> >> >
> >> > I don't have any hard numbers at the moment, but I was playing with
> >> > memcache at one point and discovered something surprising (and
> >> > disheartening about PHP); Caching arbitrary objects with memcache
> >> > (within a single request) was faster than using a PHP associative
> >> > array as a cache! Memcache is wicked fast.
> >> >
> >> > --
> >> > Tom
> >> > _______________________________________________
> >> > wp-hackers mailing list
> >> > wp-hackers at lists.automattic.com
> >> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> >
> >
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Computer Guru
Director,
NeoSmart Technologies
http://neosmart.net/blog/
More information about the wp-hackers
mailing list