[wp-hackers] Options and caching

James Davis james at freecharity.org.uk
Wed Jan 30 09:50:14 GMT 2008

Some users of a plugin I write aren't correctly retrieving option 
values. A little Googling suggests this may be related to caching of 
previous get_option() calls. I have a niggling feeling that I might be 
misusing the _option() calls in one way or another. What I'm doing on 
installation is...

if (get_option("myoption")=="")

and later...


returns "".

Any ideas?


http://www.freecharity.org.uk/ - Free IT services for charities
http://www.freecharity.org.uk/wiki/ - The VCSWiki

More information about the wp-hackers mailing list