SuperCache for Custom Templates
SuperCache for Custom Templates
SuperCache for Custom Templates
How do I enable dynamic content in a theme cached with WP Super Cache?
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
Will they wait until the next hit to wp-cron.php (+8 hours)? Yes. That’s why it’s important to keep this duration shorter. I usually keep it to every 5 minutes. PS: I know it’s an old question. But, wanted to answer it anyway, if someone else has the same question in the future.
It will most likely depend on the plugin, but you should also remember that your content might be cached also in caching proxies as well. https://stackoverflow.com/questions/9334393/proxy-cacheing-what-about-cookies In other words, if your output is different to two different users, than you can not use caching. The way to go around this is to make the decision … Read more
In Settings > WP Super Cache disable Advanced > Clear all cache files when a post or page is published or updated. There is nothing wrong with using static page cache for larger site as long as it fits your requirements. If you need dynamic features or extreme performance, then it would be time to … Read more
I’ve spotted some errors here: jQuery.ajax({ type: “POST”, contentType: “application/json; charset=utf-8”, // default: ‘application/x-www-form-urlencoded; charset=UTF-8’. you can not set url: “http://localhost/wp-admin/admin-ajax.php”, // if you have correctly enabled ajax in wp, you should use the object you set up with the url data: “{‘action’:’get_PostViews(” + idpost + “)’}”, // you can use a PlainObject notation, so … Read more
Plugins such as WP Super Cache have a setting for that. It’s called “pre-load”, it allows you to pre-load pages and you can set an specific interval to regenerate cache. If you publish at least 3 or 4 times a week a good configuration could be every 4000 minutes.
It’s a cache problem. See if the cache directory is writable (it should be 755), try to empty it and try again. Another cause might be the combination of CURL extension and enabled open_basedir. Check with your host. Another solution might be to try the “Permalink Fix & Disable Canonical Redirects Pack” plugin – http://wordpress.org/extend/plugins/permalink-fix-disable-canonical-redirects-pack/
This function will clear WP Super Cache upon saving of ACF Options page. Enjoy! <?php /* Additional Function to prune the Cache if $post_id is ‘0’ or ‘options’ */ function f711_clear_custom_cache($post_id) { // just execute if the $post_id has either of these Values. Skip on Autosave if ( ( $post_id == 0 || $post_id == … Read more