Expanding on what shawn said (if almendro wants to write it as a plugin and publish it to extend):
I still think almendro's suggestion is worth making an issue/pull request on (e.g. having a constant in
PHP Code:
<?php
// plugins/prettify_pagecache.php
// Register the plugin
register_plugin(/* registration details */);
// Add the page saving hook
add_action('pagecache-aftersave', 'prettify_pachecache');
// Define the prettifying function
function prettify_pachecache() {
// get the xml file ($filem) and then run almendro's prettifying script
}
I still think almendro's suggestion is worth making an issue/pull request on (e.g. having a constant in
gsconfig.php
that enables/disables xml prettifying).