Support » Plugin: W3 Total Cache » Latest update will not cache custom template pages

Viewing 9 replies - 1 through 9 (of 9 total)
  • I found a quick solution. If the header is changed from:

    header(“Content-Type: application/rss+xml; charset=UTF-8”);


    header(“Content-Type: text/xml; charset=UTF-8”);

    Total Cache works perfectly again.

    Hi that is great news, I am glad you were able to resolve your issue. If this is resolved could you please close this ticket.

    Thank you kindly.

    Plugin Author Frederick Townes


    That header is a rss feed header. You need to enable feed caching on Page Cache settings page to cache templates that use that header.

    Hmmm. Still no dice. I enabled: rdf, atom, rss, rss2. The Total Cache comment looks like this with debug turned on:

    <!– Performance optimized by W3 Total Cache. Learn more:

    Served from: (taking out the server name, but it’s there) @ 2013-02-07 09:17:48 by W3 Total Cache –>

    Honestly changing the header to header(“Content-Type: text/xml; charset=UTF-8”); isn’t a massive deal for the project I’m working on. If you are too busy, don’t worry about it. Thanks for the help!

    Have you enabled check box “Cache feeds: site, categories, tags, comments” on Page Cache settings page, too?

    I just went back and checked that box. Still no dice. Rolled back to text/xml and started caching again. Weird, right?

    Plugin Author Frederick Townes


    So you checked the cache feed checkbox and changed header to text/xml and everything cached properly? If that is correct please mark this as resolved.

    Hi Frederick,

    I’m having this same issue, while using the text/xml header works I would like to know how to add support for other content-type headers used with feeds?

    There are cases where we generate feeds for use in iOS apps and they have to have a specific content-type header in order to work.

    I’m struggling to work out where in the code the content-type of text/html or text/xml is used to trigger the page cache, can you point me in the right direction? Would be useful if I could filter it perhaps in a later version.


    Not to worry, I found this filter as of version which lets me add the atom feed content type:



Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Latest update will not cache custom template pages’ is closed to new replies.