How can I cache the LearnDash quizzes on my server?
How can I cache the LearnDash quizzes on my server?
How can I cache the LearnDash quizzes on my server?
Post views log/count is not available natively. It is resource-intensive (database writes are much more expensive than reads) and won’t work (if done in pure PHP) with most caching plugins. There is number of plugins/services that offers Analytics via JS- or image-based tracking. Your best bet is to let such service handle analytics and pull … Read more
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
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
Caching shouldn’t affect Modernizr since it’s a client-side script and will run every time the page is visited. I haven’t used Headway but from what you describe it sounds like a server-side script in Headway is sniffing the browser and that’s the result being cached. Does that make sense?
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
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
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
This is a response to your second question — “Also, it looks like the main page of the site is not cached, while everything else is. Is there any way to deal with that?” In your backend, go to Settings -> WP Super Cache and select the Advanced tab. Look for the section titled Accepted … Read more
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