meghlal / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

TimThumb script on Wordpress theme spiking CPU to shut down site #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We were just contacted by our server that they were going to shut down the site 
post issues with the script eating too much CPU. We had not been experiencing 
any issues until the last three days. We've already put a robots.txt file in to 
prevent exorbitant crawling. 

Can you help us? Is it a caching problem? We can't afford to have our site shut 
down. :(

We are operating on Chrome on a PC. 

I just updated with the current script on the site, but we were running the 
following (just put first few lines in for reference)

 TimThumb script created by Tim McDaniels and Darren Hoyt with tweaks by Ben Gillbanks
    http://code.google.com/p/timthumb/

    MIT License: http://www.opensource.org/licenses/mit-license.php

    Paramters
    ---------
    w: width
    h: height
    zc: zoom crop (0 or 1)
    q: quality (default is 75 and max is 100)

    HTML example: <img src="/scripts/timthumb.php?src=/images/whatever.jpg&w=150&h=200&zc=1" alt="" />
*/

/*
$sizeLimits = array(
    "100x100",
    "150x150",

Original issue reported on code.google.com by squareds...@gmail.com on 6 Apr 2011 at 1:13

GoogleCodeExporter commented 9 years ago
update the script. The version you have pasted above is a couple of years out 
of date

Original comment by BinaryMoon on 21 Apr 2011 at 10:06