Created
September 17, 2014 12:49
-
-
Save hansek/11ca3c6a6841bd201a37 to your computer and use it in GitHub Desktop.
SQL to disable caching in MODX Revolution for Development purpose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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