faq:troubleshooting:tools:dev-mode

DEV mode

DEV mode (Developer mode) re-loads site wide cache.

Important: Mode is only suitable in development or debugging environment. In production environment, DEV mode must be disabled to avoid negative impact on site's performance.

DEV mode settings are adjusted in ow_includes/config.php file. By default DEV mode is set to “false”:

/**
    * Make changes in this block if you want to enable DEV mode and DEBUG mode
    */

    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);

Custom configurations for DEV mode:

  • define(‘OW_DEV_MODE’, 2) - clears Smarty template cache
  • define(‘OW_DEV_MODE’, 4) - re-generates themes' cache
  • define(‘OW_DEV_MODE’, 8) - re-generates language cache
  • define(‘OW_DEV_MODE’, 32)- re-generates plugins' cache
  • define(‘OW_DEV_MODE’, 36)- re-generates plugins'+ themes' cache
  • define(‘OW_DEBUG_MODE’, true)- performs all actions from above.

How to use DEV mode

  • open ow_includes/config.php
  • find “Make changes in this block if you want to enable DEV mode and DEBUG mode” section at the end of the file
  • replace “false” next to OW_DEV_MODE by desired custom configuration. Ex: define('OW_DEV_MODE', 36);
  • save changes
  • refresh any site page OR refresh the page where you were expecting for the custom changes to appear
  • go back to ow_includes/config.php file. Set DEV mode back to “false”: define('OW_DEV_MODE', false);
  • save changes.
faq/troubleshooting/tools/dev-mode.txt · Last modified: 2017/06/07 09:11 by 127.0.0.1