New answers tagged plugin-wp-supercache
0
As per this question, you can use fragment caching to exclude specific things from being cached:
Edit your templates to with the following syntax to ensure that
dynamic features remain so: Example 1:
<!-- mfunc any PHP code --><!-- /mfunc -->
Example 2:
<!-- mfunc -->any PHP code<!-- /mfunc -->
Example 3:
...
0
Just to be clear: this max-age refers to the external caching - that is, to how long the page is cached in the BROWSER. You don't want the browser to cache pages for a lengthy time. If you fix as much as a typo in a post, that page will still show the error because it comes from the browser's cache.
The max-age is NOT how long WP Super Cache caches the ...
0
The best value depends on the dynamic content you have:
If there are widgets which should be up to date each time, you cannot use a long value, or your visitors will get outdated content. That’s often not a problem though.
The value should not be longer than your average post frequency. If you add a new post two times per day, you probably want to show ...
0
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 == 'options' ) && ...
0
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 look into alternatives.
0
I use WP-SuperCache and since I just use (don't hack it), then it's deactivated when I'm on development. I only activate it on production. This might not be quite effective, because you may want to test how caching works on development. However, I found (at least for me) testing in development to be useless since the data and traffic are in the production ...
Top 50 recent answers are included