Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Labels:
      None

      Description

      TL;DR

      Some soy template changes are ignored, because the last modified date of the tofu we store in SoyTemplateManager is wrong.

      Details

      The bug is caused by the lastModifiedCache not being updated after we have successfully strained and compiled a new tofu.

      The sequence of events are as follows:

      1. change soy template
      2. refresh browser
      3. Enter DefaultSoyManager.render()
      4. dev mode causes both the tofu cache and the lastModified cache to be invalidated
      5. tofu cache is updated with new tofu to reflect template change
      6. Exit DefaultSoyManager.render() (note: lastModified cache not updated here when it should be).
      7. now make another change to the template
      8. hit refresh
      9. call to isModified() causes the lastModifiedCache be updated to the last mod date of the second template change (not the first).
      10. because we have retrieved the wrong last modified date, it seems nothing has changed and so the second template change is ignored.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Dave Loeng
            Reporter:
            Dave Loeng
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Who's Looking?