Re: [PHPTAL] Re: Cleaning cache files

2011-10-07 Thread Kornel Lesiński

On Fri, 07 Oct 2011 16:25:22 +0100, Bas Kooij  wrote:


Whoops, I just checked and it seems I left forceReparse on true
after all on the production site. Could that be the reason I got
so many cache files?


No, unless contents or modification time of templates changed very  
frequently.


If you've unexpectedly created a lot of cached content, then perhaps cache  
key contain values that change too frequently? (e.g. mistakenly use  
current time rather than modification time).


--
regards, Kornel Lesiński

___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] Re: Cleaning cache files

2011-10-07 Thread Bas Kooij
Whoops, I just checked and it seems I left forceReparse on true 
after all on the production site. Could that be the reason I got 
so many cache files?



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] Re: Cleaning cache files

2011-10-06 Thread Marco Pivetta
Ok, that looks much more affordable :D
Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 6 October 2011 16:45, Bas Kooij  wrote:

> Marco Pivetta  writes:
>
> >
> >
> > That's a suicide!Instead, follow what stated by the docs:
> http://phptal.org/
> manual/de/split/sysadmin.htmlMarco Pivettahttp://
> twitter.com/Ocramiushttp://
> marco-pivetta.com 
>
> Let me rephrase that:
>
> I've removed all phptal:cache attributes from my code. I have
> not set forceReparse to true.
>
>
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] Re: Cleaning cache files

2011-10-06 Thread Bas Kooij
Marco Pivetta  writes:

> 
> 
> That's a suicide!Instead, follow what stated by the docs:http://phptal.org/
manual/de/split/sysadmin.htmlMarco Pivettahttp://twitter.com/Ocramiushttp://
marco-pivetta.com

Let me rephrase that:

I've removed all phptal:cache attributes from my code. I have
not set forceReparse to true.




___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] Re: Cleaning cache files

2011-10-06 Thread Marco Pivetta
That's a suicide!
Instead, follow what stated by the docs:

http://phptal.org/manual/de/split/sysadmin.html

Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 6 October 2011 15:38, Bas Kooij  wrote:

> Well... now I had so many cache files in the temp
> directory that PHPTal crashed while trying to clean
> the old cache files. The crash happened on line 924
> in the file PHPTAL.php. It seems this is a know issue
> when using the function 'glob' while reading a directory
> with a lot of files in it. I had 110,000 files in the
> directory.
>
> I've now disabled all TAL caching.
>
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] Re: Cleaning cache files

2011-10-06 Thread Bas Kooij
Well... now I had so many cache files in the temp
directory that PHPTal crashed while trying to clean
the old cache files. The crash happened on line 924
in the file PHPTAL.php. It seems this is a know issue
when using the function 'glob' while reading a directory
with a lot of files in it. I had 110,000 files in the 
directory.

I've now disabled all TAL caching. 



___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal