TimThumb PHP Image Resizer and Cache Question

Discussion in 'PHP' started by qwikad.com, Sep 28, 2013.

  1. #1
    I am using TimThumb PHP Image Resizer: http://www.binarymoon.co.uk/projects/timthumb/ in one of my projects and I just noticed that my cache folder is full of files that have one line of php code in them: <?php die('Execution denied!'); //jpg ?>

    Everything is working just fine, but every time an image is posted and viewed or just viewed a new cache file appears for that image.

    Question: Is it normal?

    I know cache is cleaned regularly, but I am wondering if it's going to create an issue if I have thousands of those files cached day in and day out.
     
    qwikad.com, Sep 28, 2013 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    normaly scripts create a cache file once and will reuse that, please post a piece of code or links to the files to have others check what's wrong! :)
     
    EricBruggema, Sep 28, 2013 IP
  3. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,373
    Likes Received:
    1,720
    Best Answers:
    31
    Trophy Points:
    475
    #3
    Actually, I should've researched more before posting the question. As it appears all the answers are in the script (it's smarter than I thought it was, lol). You can set how often you want the cache to be cleaned and the little piece of code: <?php die('Execution denied!'); //jpg ?> is for protection there. So it's all good.
     
    qwikad.com, Sep 29, 2013 IP
  4. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #4
    Well its good to hear that everything is ok now! next time, just check twice before starting a topic :p
     
    EricBruggema, Sep 29, 2013 IP