webCOMAND

Dependencies Configuration

Dependencies functionality is disabled by default because it can consume a significant amount of storage.  It can be enabled to dramatically improve publishing (cTemplate and cScript processing) performance, especially when only some files need to be updated as part of a greater publish task.

Dependencies can be enabled and disabled at any time.

To enable dependencies:

  1. Create a dedicated MySQL database, named something like 'webcomand_dependencies'.  It should be created with the utf8 character set and utf8_general_ci collation.  For example:
    CREATE DATABASE webcomand_dependencies CHARACTER SET utf8 COLLATE utf8_general_ci;
  2. Grant the webCOMAND database user permission to administer this database.  For example:
    GRANT ALL PRIVILEGES ON `webcomand_dependencies`.* TO '<db_user>'@'localhost';
  3. Enable dependencies in config.php in the top-level webCOMAND folder.  For example:
    <?php
    $config = [
        'io_comand_script' => [
            'cache_database' => [
                'name' => 'webcomand_dependencies',
                'username' => '<db_user>',
                'password' => '<db_password>'
            ]
        ],
        'io_comand_publication' => [
            'modules' => [
                '\io_comand_email\script',
                '\io_comand_file\script',
                '\io_comand_file\zip\script',
                '\io_comand_image\script',
                '\io_comand_pdf\script',
                '\io_comand_process\script\perl',
                '\io_comand_process\script\php',
                '\io_comand_publication\script',
                '\io_comand_repo\script\edit',
                '\io_comand_repo\script\read',
                '\io_comand_sql\script',
                '\io_comand_script\dependencies', // enable dependencies
            ]
        ]
    ];