jaydipsavaliya / timthumb

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

Use without using the CACHE folder #234

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, thanks for the cool script. It works very well except I wish to be able to 
use it without the caching folder. 
I've looked at the scrip and tried setting CACHE_USE to false but it still 
likes to write all the images to the cache folder. I've also set the CACHE_SIZE 
to 2 but it never deletes the contents of the cache directory. 

Is there something else I can try to switch caching off?
Thanks very much.
Graham Vincent

Original issue reported on code.google.com by loudsphi...@gmail.com on 15 Aug 2011 at 3:52

GoogleCodeExporter commented 8 years ago
why do you want to disable caching? That will just put your server under more 
strain

Original comment by BinaryMoon on 16 Aug 2011 at 11:41

GoogleCodeExporter commented 8 years ago
Becuase I am limited by disk space.

Original comment by loudsphi...@gmail.com on 16 Aug 2011 at 12:11

GoogleCodeExporter commented 8 years ago
TimThumb is not designed to be run without caching so there's no way to disable 
it. I really don't recommend disabling caching as it's going to be a processor 
killer.

Original comment by BinaryMoon on 16 Aug 2011 at 3:39

GoogleCodeExporter commented 8 years ago
OK, thanks BinaryMoon. 
I love the cropping....being able to throw an image at it and it crops it 
without messing the ratio up. Might have to find something else, I've got a 
virtual server and the disk space will fill up quickly when users upload 
images. 

Original comment by loudsphi...@gmail.com on 16 Aug 2011 at 3:44

GoogleCodeExporter commented 8 years ago
You should really just cache (so if the user reloads 5-10 times the image isn't 
regenerated - then cleanup old files created more than 1 day ago every day 
using a Cronjob

Original comment by m...@mattclements.co.uk on 23 Aug 2011 at 12:25

GoogleCodeExporter commented 8 years ago
That's great adive, thanks. I forgot about the CronJob stuff. 

Original comment by loudsphi...@gmail.com on 23 Aug 2011 at 12:46

GoogleCodeExporter commented 8 years ago
I am a Chinese e-mail you can reply me?OK
Address: li6741@gmail.com

http://sae.sina.com.cn/?m=devcenter&catId=201

Because of SAE (cloud) Web Service is a distributed environment, so when users 
need to share the cache of some form of small key-value data,  need to use 
Memcache service, so you can quickly respond to data, and can reduce the 
back-end storage pressure

I use the "cloud" services is the need for new code cache!
Example:

    Memcache service currently offers the following interfaces:

     memcache_init - MC link initialization
     memcache_get - for MC data
     memcache_set - into the MC data

   Examples of use:

     $ mmc = memcache_init ();
     if ($ mmc == false)
         echo "mc init failed \ n";
     else
     {
         memcache_set ($ mmc, "key", "value");
         echo memcache_get ($ mmc, "key");
     }

Original comment by li6...@gmail.com on 20 Sep 2011 at 11:49

GoogleCodeExporter commented 8 years ago
I have an issue where one of my website has 1000 images and posts.  When it 
starts caching, I get a message saying 100s of my files are changing from my 
security tool in wordpress and my website runs really slow for several hours 
and some of the pages go missing until its finished.  Is there any way to 
manage the caching better so it doesnt effect the website going down.

Original comment by bi...@creative-impact.co.uk on 7 Oct 2013 at 9:25