• Hello,

    I cannot figure out why the /feed/ url is not caching. The rest of the site is page caching just fine into wp-content/cache/page_enhanced/. Two different sites, one on apache and the other via nginx. Both have the Cache feeds option enabled.

    There are no files created for feed in the page_enhanced folder.

    Any ideas where to start looking?

    [Sun, 15 Oct 2017 12:26:42 +0000] [/feed/] [-] start, can_cache: true
    [Sun, 15 Oct 2017 12:26:42 +0000] [/feed/] [-] no cache entry for site.dev/feed/_index.html
    [Sun, 15 Oct 2017 12:26:42 +0000] [/feed/] [-] storing cached page – not a cached content

    `
    add_filter( ‘w3tc_is_cacheable_content_type’, function( $content_types ){
    $content_types[] = ‘application/rss+xml’;
    return $content_types;
    } );
    `

    Thanks,
    Dave

    • This topic was modified 7 years, 4 months ago by dtbaker.
    • This topic was modified 7 years, 4 months ago by dtbaker.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dtbaker

    (@dtbaker)

    edit: I managed to get it caching to /page_enhanced/site.com/feed/_index.html by adding rss to the allowable content type. I’m just looking at setting the correct header for that file when it’s served via nginx.

    add_filter( ‘w3tc_is_cacheable_content_type’, function( $content_types ){
    $content_types[] = ‘application/rss+xml’;
    return $content_types;
    } );

    I believe this was resolved quite thoroughly by the folks at w3tc-fixed more than 6 months ago. What was strange was that the author of w3tc did not incorporate that patch into the official release which he normally does with other fixes from w3tc-fixed. Anyway, you could hunt down that fix on github and just manually add it in yourself. The person in their group that fixed it was either amiga-500 (Kimberly) or nigro.simone (Nigro). You can see the author gives them multiple mentions for bug fixes under the Development tab here on WordPress. Anyway, I think it was Kimberly who did that fix. She explained it in detail what the problem was, and gave a detailed resolution including several variations of feeds e.g. atom/rdf/rss2/rss that she took care. so they all would get cached. And i’m pretty sure she got it working for nginx too, not just apache. It’s been so long ago so i am just going off memory when that group was heavily active in this forum and over on github fixing all w3tc’s bugs.

    Thread Starter dtbaker

    (@dtbaker)

    Well there you go, I didn’t even know about w3tc-fixed

    Yep problem fixed over there: https://github.com/szepeviktor/w3-total-cache-fixed/pull/393/files

    I’ll give it a crack ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3TC not caching /feed/’ is closed to new replies.