Be conservative in your caching. Otherwise most of your cached items are going to be pages (often with obscure combos of filters) getting hit once by Google (and other search engines, but mainly Google). Caching something that is only accessed once is pointless. It's better to cache just the things that are worth caching - things that will actually get hit heavily by more than one person. Just enabling caching for the site as a whole doesn't work in the long run in my experience unless you know for a fact that there are, say, 100 possible URLs and that's it.
On Mon, May 17, 2010 at 12:40 PM, ToM <[email protected]> wrote: > Hello All, > > I've got a question about automatic file cache cleaning in symfony > 1.1.x. The problem is that when all the cache files stored in ./cache > folder grows the apache server has problems with parsing them > consuming to much RAM. I've found in sfCache API that we can set > lifetime and automatic_cleaning_factor parameters. I've set the > lifetime to 300 sec and automatic_cleaning_factor=1 to clean cache > every 300sec. My problem is that it accualy sometimes reduces the > size of cache directory but it still grows constantly, which means > that it grows faster than the cleaning reduces it's size. Is there any > way (except periodically php symfony cc) to stop cache from growing? > > Thanks > ToM > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
