[wp-hackers] Options and caching

James Davis james at freecharity.org.uk
Wed Jan 30 11:01:54 GMT 2008


Ozh wrote:

> Then, what about the following:
> if (!get_option('myoption')) {
>         update_option('myoption', 'default');
>         wp_cache_flush();
> }

Thanks I'll try this. It probably doesn't help that I've developing with 
the cache turned off, although I wasn't able to replicate the problem on 
a test install outside my development environment. Enough users have 
contacted me to convince me there's a real problem though =)

James

-- 
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