We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    HI,

    I have a gallery image images which are just called in via a collection.
    Occasionally I have to update an image within a resource - but when I do this, the cached image (from pthumb) is not removed/updated - it keeps the old image.

    I have to manually go in an delete the cached file so that it can create a new one - is there a way round this.

    We need the file name to remain the same, which is what i think is causing the problem.

    Thanks
    Andy

    This question has been answered by sriananda. See the first response.

    • discuss.answer
      • 47717
      • 144 Posts
      Quote from: tm2000 at Feb 05, 2016, 04:06 AM
      HI,

      I have a gallery image images which are just called in via a collection.
      Occasionally I have to update an image within a resource - but when I do this, the cached image (from pthumb) is not removed/updated - it keeps the old image.

      I have to manually go in an delete the cached file so that it can create a new one - is there a way round this.

      We need the file name to remain the same, which is what i think is causing the problem.

      Thanks
      Andy

      Have you tried "clearing the cache" of your site ?

      Have you tried changing some system settings under "pthumb" ? There are some settings about caching and image names that you can change.
        • 51020
        • 670 Posts
        Quote from: sriananda at Feb 05, 2016, 05:44 AM
        Quote from: tm2000 at Feb 05, 2016, 04:06 AM
        HI,

        I have a gallery image images which are just called in via a collection.
        Occasionally I have to update an image within a resource - but when I do this, the cached image (from pthumb) is not removed/updated - it keeps the old image.

        I have to manually go in an delete the cached file so that it can create a new one - is there a way round this.

        We need the file name to remain the same, which is what i think is causing the problem.

        Thanks
        Andy

        Have you tried "clearing the cache" of your site ?

        Have you tried changing some system settings under "pthumb" ? There are some settings about caching and image names that you can change.

        Thanks - yes I have cleared the site cache under Manger > Clear Cache
        I haven't checked any system settings though - I'll see what i can find.

        Thanks
        Andy
          • 51020
          • 670 Posts




          Quote from: sriananda at Feb 05, 2016, 05:44 AM
          Quote from: tm2000 at Feb 05, 2016, 04:06 AM
          HI,

          I have a gallery image images which are just called in via a collection.
          Occasionally I have to update an image within a resource - but when I do this, the cached image (from pthumb) is not removed/updated - it keeps the old image.

          I have to manually go in an delete the cached file so that it can create a new one - is there a way round this.

          We need the file name to remain the same, which is what i think is causing the problem.

          Thanks
          Andy

          Have you tried "clearing the cache" of your site ?

          Have you tried changing some system settings under "pthumb" ? There are some settings about caching and image names that you can change.



          Thanks for the tip - I found a setting in Pthumb system settings called:
          Check file modification time

          Which defdaults to No.
          Changd to Yes, it checks the time the file was modified and uses that to regenerate the image where need be - worked a treat.

          Thanks again for steering me in the right direction!

          Andy