content = open("/var/www/html/wp-config.php").read()
content = content.replace("define( 'SAVEQUERIES', true );", "define( 'SAVEQUERIES', false );")
marker = "/* That's all, stop editing! Happy publishing. */"
insert = "define( 'WP_CACHE', true );\ndefine( 'WPCACHEHOME', WP_CONTENT_DIR . '/plugins/wp-super-cache/' );\n"
content = content.replace(marker, insert + marker)
open("/var/www/html/wp-config.php", 'w').write(content)
print("DONE")