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

Where does WordPress default SimplePie save cache data?

In WordPress, the WP_Feed_Cache class uses the WP_Feed_Cache_Transient class to store the results into a transient. So, short answer, either in the database or in the Object Cache if you have a persistent object cache stored. If you need to cache something for a period of time, use a transient. http://codex.wordpress.org/Transients_API

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

Caching-Plugins and Ajax-Page-Parts

You can use following code to exclude page from caching. define(‘DONOTCACHEPAGE’, true); //Disables page caching for a given page. define(‘DONOTCACHEDB’, true); //Disables database caching for given page. define(‘DONOTMINIFY’, true); //Disables minify for a given page. define(‘DONOTCDN’, true); //Disables content delivery network for a given page. define(‘DONOTCACHCEOBJECT’, true); //Disables object cache for a given page and … Read more

Comment Moderation and CDN Caching

Figured it out. Looking at wp-comments-post.php there is a filter called comment_post_redirect which I used to check if the comment was approved and then added a query string to the URL. So easy. //A query string needs to be added when redirecting back to the post after a comment is posted and not approved. This … Read more

Correct way to perform non-cacheable DB query

I am not completely sure what you are talking about so I will mention the possibilities that come to mind. Maybe this… // Keep track of the last query for debug.. $this->last_query = $query; http://core.trac.wordpress.org/browser/tags/3.5.2/wp-includes/wp-db.php#L1195 … is what you are talking about. If so, your code just runs the flush method which resets $wpdb properties … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)