[wp-hackers] Multiple options vs. one large serialized option

DD32 wordpress at dd32.id.au
Fri Aug 8 13:29:47 GMT 2008


Ahah! One of those people who insist on passing serialized data to  
update_option()...

Honestly: update_option() serializes any non-string data thats passed to  
it allready, get_option() will unserialize on return as well, In some  
cases you can end up with PHP double-serializing the string which while  
your code works fine with, it can create higher load on PHP..

My advice to all plugin developers: Just pass the data in and let the API  
do the serializing...

(Nothing really negitive towards you meant by this message)

On Fri, 08 Aug 2008 23:12:32 +1000, Benedict Eastaugh <ionfish at gmail.com>  
wrote:

> Here's the code I use to manage Tarski's options, it's worked pretty
> well for me.
>
> http://code.google.com/p/tarski/source/browse/trunk/library/classes/options.php?r=741


More information about the wp-hackers mailing list