We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54562
    • 1 Posts
    Hi!

    My name's Joe and I am currently doing database management for an agricultural company.
    I am using ModX Revolution 2.6.5-pl.

    The problem that I have is that when I go to update an image on the site, the new image will appear on the drill down page, but not on the home page. I have tried clearing caches, posting in incognito etc but nothing works.

    Could someone please help?

    Many thanks
    Joe

      • 38783
      • 571 Posts
      Could you show the markup/code in your home page template, and also in the pages where the images are updating successfully?

      When you refer to clearing caches are you doing this through the MODX manager? If you are I would try also deleting the contents of /core/cache/ folder directly via FTP or SSH. The MODX Manager does not always clear the cache as thoroughly as it should.
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 3749
        • 24,544 Posts
        You could try putting the image in a chunk and making the chunk tag uncached using the exclamation point:

        [[!$Chunkname]]
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 54637
          • 1 Posts
          The cache system can be very tricky sometimes.
          If the image url is fetched using a snippet, you can make sure the snippet is really called uncached by sending a dummy argument with a value that is always changing. As the parser will detect the snippet call signature (if you call the same snippet 2 times with the same values, the second time the php code will not be executed).
          So you can call you snippet with for example [[MySnippet? &dummy=`some id changing ever time`]] to make sure the php code is really run each time.
            • 3749
            • 24,544 Posts
            Have you found that to behave differently than just using the exclamation point?
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting