[wp-hackers] Avoiding option cacheing for a specific option

peter baylies pbaylies at gmail.com
Sat Sep 20 19:40:00 UTC 2014


Hi David,

You might be able to handle this with the 'pre_option_$option'
<http://codex.wordpress.org/index.php?title=Plugin_API/Filter_Reference/pre_option_$option&action=edit&redlink=1>
filter
- see The Codex, here,
http://codex.wordpress.org/Function_Reference/get_option#Notes and here:
http://codex.wordpress.org/Class_Reference/WP_Object_Cache#wp_cache_functions

Cheers,

 -- Peter

On Sat, Sep 20, 2014 at 3:54 AM, David Anderson <david at wordshell.net> wrote:

> Hi,
>
> Where in WP core is the architecturally correct place to make sure that a
> specific option is never cached?
>
> I'm not asking about how to do this via a plugin - I'm working on a patch
> to do with an issue caused by cacheing an option that would just be better
> never cached.
>
> Best wishes,
> David
>
> --
> UpdraftPlus - best WordPress backups - http://updraftplus.com
> WordShell - WordPress fast from the CLI - http://wordshell.net
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list