Skip to content

Instantly share code, notes, and snippets.

@hansek
Created September 17, 2014 12:49
Show Gist options
  • Save hansek/11ca3c6a6841bd201a37 to your computer and use it in GitHub Desktop.
Save hansek/11ca3c6a6841bd201a37 to your computer and use it in GitHub Desktop.
SQL to disable caching in MODX Revolution for Development purpose
-- disable all cache options
UPDATE `modx_system_settings` SET value = 0
WHERE `area` = 'caching' AND `xtype` = 'combo-boolean';
-- reactivate cache_disabled :)
UPDATE `modx_system_settings` SET value = 1
WHERE `key` = 'cache_disabled';
-- disable compress JS and CSS
UPDATE `modx_system_settings` SET value = 0
WHERE `key` IN ('compress_js', 'compress_css');
-- set session cookie path to webroot
UPDATE `modx_system_settings` SET value = '/'
WHERE `key` = 'session_cookie_path';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment