Is the object cached?

If you use the WordPress API to retrieve the metadata, then it should be cached for you. If you do other complex stuff, there is the Transients API for caching data yourself, which will take advantage of whatever object cache you use with WordPress. EDIT – I should clarify, it’ll be loaded for each request … Read more

Reasonable Size Limit to options entry

Each page load triggers a database query that reads all the options (from what I’m aware the option records are all auto-loaded). Anyway 317 K is not something you should worry about, but there are better ways to store your data, for example a simple text file that gets read trough ajax only when the … Read more

Problem with caching, W3TC [closed]

The best way I can think of is to add a unique string to the end of the stylesheet include to get everything to update. For example, if you are including it in the header.php file: <link rel=”stylesheet” href=”https://wordpress.stackexchange.com/questions/62636/<?php echo get_stylesheet_uri(); ?><?php echo”?v=’. time(); ?>” /> Of course that will keep it from being cached… … Read more

How to speed up my site [duplicate]

Try using a caching plugin. There’s plenty available, the two most popular being WP Super Cache and W3 Total Cache. If you’re just starting out with caching, I’d recommend W3 Total Cache, as it is rather easy to set up and includes a lot of options. It’s even used by some of the bigger sites … Read more

WP Super Cache Bug with Ubermenu

I’ve experienced the same issue. I’m not 100% sure yet if this is helping because it’s an intermittent issue, but as noted on the plugin author’s docs, this is a potential new fix for the problem: <!– mfunc wp_nav_menu( $args ); –> <?php wp_nav_menu( $args ); ?> <!– /mfunc –> UPDATE As of version 2.3 … Read more

Prevent installation of style.css cookies and file caching

I expect that your theme has code similar to this in it: wp_enqueue_style( ‘themename-style’, get_stylesheet_uri() ); You need to alter this to have version information, like so: wp_enqueue_style( ‘themename-style’, get_stylesheet_uri(), array(), ‘1.0’ ); Where “1.0” is the version of the theme. Now, every time you alter that stylesheet, you need to update the version number. … Read more