Discussion:
W3 Total Cache and excluding specific page content from caching
William Satterwhite
2013-09-09 00:43:13 UTC
Permalink
I've been doing a lot of research, reading, and made many attempts at
excluding specific content areas from W3 Total Cache's page caching. What I
keep trying is excluding a sidebar and its widgets entirely from page
cache, but leaving the rest of the page cached. Multiple attempts at doing
so have failed. I've followed many of the <!-- mfunc --> examples, enabled
late init within page caching, and nothing seems to work. There are many
widgets that are used, which display dynamic information produced by PHP,
so having the ability to exclude them from caching would be great.

Any help or feedback would be greatly appreciated.

The following are links that I've found while trying to figure this out on
my own:
http://wordpress.org/support/topic/mfunc-still-not-working/page/2?replies=13
http://support.industrialthemes.com/viewtopic.php?f=5&t=4786
http://css-tricks.com/wordpress-fragment-caching-revisited/
http://wordpress.stackexchange.com/questions/13169/can-i-ignore-caching-of-a-plugin-in-w3-total-cache

To complicate things, I'm using the Genesis Framework with a child theme
and trying to get this working with Cart66's "Cart" widget.

Thank you,
--
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
Martin Lazarov
2013-09-09 17:49:02 UTC
Permalink
You can use ajax to load some parts of your page and it's easy to
exclude from caching this ajax url's

On Mon, Sep 9, 2013 at 3:43 AM, William Satterwhite
Post by William Satterwhite
I've been doing a lot of research, reading, and made many attempts at
excluding specific content areas from W3 Total Cache's page caching. What I
keep trying is excluding a sidebar and its widgets entirely from page
cache, but leaving the rest of the page cached. Multiple attempts at doing
so have failed. I've followed many of the <!-- mfunc --> examples, enabled
late init within page caching, and nothing seems to work. There are many
widgets that are used, which display dynamic information produced by PHP,
so having the ability to exclude them from caching would be great.
Any help or feedback would be greatly appreciated.
The following are links that I've found while trying to figure this out on
http://wordpress.org/support/topic/mfunc-still-not-working/page/2?replies=13
http://support.industrialthemes.com/viewtopic.php?f=5&t=4786
http://css-tricks.com/wordpress-fragment-caching-revisited/
http://wordpress.stackexchange.com/questions/13169/can-i-ignore-caching-of-a-plugin-in-w3-total-cache
To complicate things, I'm using the Genesis Framework with a child theme
and trying to get this working with Cart66's "Cart" widget.
Thank you,
--
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
William Satterwhite
2013-09-09 17:52:29 UTC
Permalink
I'm ware that this can be done using ajax, but this widget does not utilize
ajax. It is a packaged widget with Cart66.
Post by Martin Lazarov
You can use ajax to load some parts of your page and it's easy to
exclude from caching this ajax url's
On Mon, Sep 9, 2013 at 3:43 AM, William Satterwhite
Post by William Satterwhite
I've been doing a lot of research, reading, and made many attempts at
excluding specific content areas from W3 Total Cache's page caching.
What I
Post by William Satterwhite
keep trying is excluding a sidebar and its widgets entirely from page
cache, but leaving the rest of the page cached. Multiple attempts at
doing
Post by William Satterwhite
so have failed. I've followed many of the <!-- mfunc --> examples,
enabled
Post by William Satterwhite
late init within page caching, and nothing seems to work. There are many
widgets that are used, which display dynamic information produced by PHP,
so having the ability to exclude them from caching would be great.
Any help or feedback would be greatly appreciated.
The following are links that I've found while trying to figure this out
on
http://wordpress.org/support/topic/mfunc-still-not-working/page/2?replies=13
Post by William Satterwhite
http://support.industrialthemes.com/viewtopic.php?f=5&t=4786
http://css-tricks.com/wordpress-fragment-caching-revisited/
http://wordpress.stackexchange.com/questions/13169/can-i-ignore-caching-of-a-plugin-in-w3-total-cache
Post by William Satterwhite
To complicate things, I'm using the Genesis Framework with a child theme
and trying to get this working with Cart66's "Cart" widget.
Thank you,
--
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
(252) 762-5177
Martin Lazarov
2013-09-09 18:05:11 UTC
Permalink
No, it isn't easy to be done, but is way to achieve what you need. You
can rewrite your widget to use ajax.

On Mon, Sep 9, 2013 at 8:52 PM, William Satterwhite
Post by William Satterwhite
I'm ware that this can be done using ajax, but this widget does not utilize
ajax. It is a packaged widget with Cart66.
Post by Martin Lazarov
You can use ajax to load some parts of your page and it's easy to
exclude from caching this ajax url's
On Mon, Sep 9, 2013 at 3:43 AM, William Satterwhite
Post by William Satterwhite
I've been doing a lot of research, reading, and made many attempts at
excluding specific content areas from W3 Total Cache's page caching.
What I
Post by William Satterwhite
keep trying is excluding a sidebar and its widgets entirely from page
cache, but leaving the rest of the page cached. Multiple attempts at
doing
Post by William Satterwhite
so have failed. I've followed many of the <!-- mfunc --> examples,
enabled
Post by William Satterwhite
late init within page caching, and nothing seems to work. There are many
widgets that are used, which display dynamic information produced by PHP,
so having the ability to exclude them from caching would be great.
Any help or feedback would be greatly appreciated.
The following are links that I've found while trying to figure this out
on
http://wordpress.org/support/topic/mfunc-still-not-working/page/2?replies=13
Post by William Satterwhite
http://support.industrialthemes.com/viewtopic.php?f=5&t=4786
http://css-tricks.com/wordpress-fragment-caching-revisited/
http://wordpress.stackexchange.com/questions/13169/can-i-ignore-caching-of-a-plugin-in-w3-total-cache
Post by William Satterwhite
To complicate things, I'm using the Genesis Framework with a child theme
and trying to get this working with Cart66's "Cart" widget.
Thank you,
--
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
(252) 762-5177
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Nicholas Ciske
2013-09-09 18:07:18 UTC
Permalink
Have you tried posting in the W3TC Plugin Support Forum? This is more a plugin issue than a WP issue...

Tried a bundled theme and all unnecessary plugins turned off to check for theme/plugin conflicts?

The thread you mentioned makes it clear that mfunc (especially after the recent security issues) is tough to get going in some environments.

Could also be the widget -- mfunc calls lose a lot of context so the widget code could be working but not pulling actual widget data due to missing info.

Writing an ajax call to replace the cached sidebar content with uncached content from the server would avoid mfunc completely and run the code within WP (keeping context).

Essentially:
Ajax calls the server saying: "give me the (primary/secondary) sidebar for page X" ... which it returns some HTML and jQuery replaces the cached sidebar with the user specific data.

Not a simple solution, but user specific content plus page caching are never simple...


_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske
Post by Martin Lazarov
On Mon, Sep 9, 2013 at 3:43 AM, William Satterwhite
Post by William Satterwhite
I've been doing a lot of research, reading, and made many attempts at
excluding specific content areas from W3 Total Cache's page caching.
What I
Post by William Satterwhite
keep trying is excluding a sidebar and its widgets entirely from page
cache, but leaving the rest of the page cached. Multiple attempts at
doing
Post by William Satterwhite
so have failed. I've followed many of the <!-- mfunc --> examples,
enabled
Post by William Satterwhite
late init within page caching, and nothing seems to work. There are many
widgets that are used, which display dynamic information produced by PHP,
so having the ability to exclude them from caching would be great.
Any help or feedback would be greatly appreciated.
The following are links that I've found while trying to figure this out
on
http://wordpress.org/support/topic/mfunc-still-not-working/page/2?replies=13
Post by William Satterwhite
http://support.industrialthemes.com/viewtopic.php?f=5&t=4786
http://css-tricks.com/wordpress-fragment-caching-revisited/
http://wordpress.stackexchange.com/questions/13169/can-i-ignore-caching-of-a-plugin-in-w3-total-cache
Post by William Satterwhite
To complicate things, I'm using the Genesis Framework with a child theme
and trying to get this working with Cart66's "Cart" widget.
Thank you,
--
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
Loading...