PDA

View Full Version : Smarty cache folders


sspyrou
13-11-08, 20:45
Hi Guys

I have a bit of a problem in that my hosting is getting very full, very quickly as the smarty cache folders grow.

The problem looks to be caused by the smarty cache folders. It appears that more and more files are being saved here and not removed. For example, one account has 526MB of files in this directory,

What’s is the realistic maximum that these files are likely to reach if i just leave them and let them be?

I've no Smarty Expert (I’m not even a coder) - in fact I have only ever used it with AW sites. I'm lost reviewing the smarty libraries to see if there are cache settings that can be adjusted - that’s way out of my depth - can someone help?

If there are no settings, as a possible last resort in the absence of better options - I may have to consider setting up a cron job to clear the files from this folder. However; this may cause some issues with your application - what are the implications of me doing this?

These files must be there for a reason.. what’s is their purpose (presumably to reduce load on SOAP queries??). Do they help my quota or your load?

Thanks

Soot

Amoochi
14-11-08, 02:10
Try this before we going any further on this one:

http://www.shopwindowforum.com/showpost.php?p=4195&postcount=3

sspyrou
26-11-08, 12:13
I will do - thanks, but before i do, does this chaching server any useful purpose?

Thanks

S

Andy
26-11-08, 17:39
yeah, it caches smarty's output so you dont have to run it as often therefore saving you server resources and calls to sw.

sspyrou
27-11-08, 15:27
In that case, we are all better off if i leave it alone as I keep hitting my bandwidth limits.

sspyrou
22-12-08, 16:32
Hi Andy

Im still having an issue with this.. you seem to be the top trump here:)
what's your opinion on this?

Im considering increaining the duration that the cache is kept for the sop window.. eg.

// init Smarty
$oSmarty = new smarty_sw();

// Clear the smarty cache for docs older than 60mins
//$oSmarty->clear_all_cache(3600);

//$oSmarty->cache_lifetime = 60;


// Clear the smarty cache for docs older than 24.somthing hours
$oSmarty->clear_all_cache(86500);
// Iincreased cache time from 1 mins to 24 hours
$oSmarty->cache_lifetime = 86400;

Is this likely to have reduce the number of calls I am making? or have any detrimental effects?

Thanks

s

CaptainFalcon
22-12-08, 17:43
Hey

How much bandwidth are we talking here? My experience with ShopWindow has shown the bandwidth requirements fairly reasonable?

If its truly that bad i suggest you take a look at: http://www.shopwindowforum.com/showthread.php?t=1059&highlight=bots

You may find stopping a number of web crawlers will be enough...

I would be interested in knowing how everyones bandwidth requirements fair against number of hits etc.

sspyrou
15-01-09, 00:16
Hey

How much bandwidth are we talking here? My experience with ShopWindow has shown the bandwidth requirements fairly reasonable?

If its truly that bad i suggest you take a look at: http://www.shopwindowforum.com/showthread.php?t=1059&highlight=bots

You may find stopping a number of web crawlers will be enough...

I would be interested in knowing how everyones bandwidth requirements fair against number of hits etc.

Thats a really good thread. I missed it when i posted something similar:
http://www.shopwindowforum.com/showthread.php?t=399&highlight=spider+trap..

I was doing about 15gb per month due to a lot of rogue bots. I've halved that now. Its not the bandwidth that was the issue though - it the database calls via soap. My quota was running out at about 10am every day.