Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14458

Smarty performance improvements

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.4.4
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      Not massively sure how much of a performance issue this improves, but we noticed Smarty compile functions hit site performance massively every now and then, so we looked into how to improve it.

      Basically:

      var $compile_check = false;

      on line 105 of /civicrm/packages/Smarty.class.php

      should be changed from 'true'.

      If you think this is a good idea, I have two further improvements, one is setting this as a value in civicrm.settings.php instead so people can switch compiling on and off in development.

      Finally, a way is needed to clear the compile dir, I have a Drupal module for this and again if you feel this is a worthwhile addition I will refactor to CiviCRM native.

      Again, sponsored by The Monthly / Schwartz Media

        Attachments

        1. patch_commit_18cd58a21366.patch
          3 kB
          Chris Chinchilla

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              chrischinchilla Chris Chinchilla
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: