Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
write XML line by line
#5
Expanding on what shawn said (if almendro wants to write it as a plugin and publish it to extend):

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).
Reply


Messages In This Thread
write XML line by line - by almendro - 2015-08-12, 00:29:09
RE: write XML line by line - by Angryboy - 2015-08-12, 03:45:05
RE: write XML line by line - by almendro - 2015-08-12, 06:48:37
RE: write XML line by line - by shawn_a - 2015-08-12, 08:37:44
RE: write XML line by line - by Angryboy - 2015-08-12, 18:30:32
RE: write XML line by line - by shawn_a - 2015-08-12, 22:10:10
RE: write XML line by line - by shawn_a - 2015-08-13, 04:03:26
RE: write XML line by line - by almendro - 2015-08-13, 22:53:21
RE: write XML line by line - by Angryboy - 2015-08-13, 04:44:11
RE: write XML line by line - by almendro - 2015-08-13, 13:16:57
RE: write XML line by line - by shawn_a - 2015-08-13, 23:03:34



Users browsing this thread: 1 Guest(s)