BoldGrid / w3-total-cache

GNU General Public License v2.0
151 stars 81 forks source link

Handle XML and cache feeds settings #863

Closed cssjoe closed 2 months ago

cssjoe commented 2 months ago

On the wp-admin/admin.php?page=w3tc_pgcache settings page, there are two settings that are linked in JavaScript events -- "Cache feeds: site, categories, tags, comments" and "Handle XML mime type". If you change "Cache feeds", then JS checks/unchecks the box for "Handle XML". If "Cache feeds" is not checked and you check "Handle XML" and save, the page reloads and the checkbox is unchecked.

The `Handle XML mime type" setting causes the Apache rules to include a rewrite to look for a ".xml" cache file. I'm not sure why the behavior exists. The "Cache feeds" option says "recommended" and enabled "Handle XML", which says "Slows down cache engine". I'm not sure how it would slow things down. Maybe we should scrap that JS event and handle XML all the time.