.tpl files won't refresh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BattleMetalChris
    Member
    • Mar 2021
    • 50

    .tpl files won't refresh

    I'm working on a module which involves overriding a view and replacing the template it uses.

    I can get it using my new .tpl file no problem, but if I make any changes to it once its being used, those changes aren't being loaded.

    I'm rebuilding and clearing the cache from the Administration screen each time, and I've also tried manually clearing out data/cache
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hi,
    have you tried : https://docs.espocrm.com/administrat...-app-timestamp
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • Kharg
      Senior Member
      • Jun 2021
      • 410

      #3
      If you can share your code maybe we can provide more support

      Comment

      • yuri
        Member
        • Mar 2014
        • 8452

        #4
        Maybe update app timestamp: https://docs.espocrm.com/administrat...-app-timestamp

        Templates might be cached in the browser's cache. If you use ext-template repository, just use developer mode, it will disable caching.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • BattleMetalChris
          Member
          • Mar 2021
          • 50

          #5
          I got it to work by using

          Code:
          sudo php command.php rebuild --force
          and

          Code:
          sudo php command.php clear-cache

          from the command line.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8452

            #6
            It's not a correct solution. Noting for anyone who read it in the future.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            Working...