[TYPO3-dev] set_no_cache is bad. What's next?

Michael Stucki michael at typo3.org
Sat Mar 31 11:36:51 CEST 2007


Hi Elmar,

>> I disagree! Although tslib_pibase might be pretty oldschool, this doesn't
>> mean that proper caching is not possible while using it. But I agree that
> 
> For whom is it possible to do proper caching with it? Maybe for me after
> years of pain.
> 
> Please open your next TYPO3 installation check the extension directory
> recursively:
> 
> grep -Ril no_cache *

I'm aware of that. But this not a problem inside tslib_pibase, it's rather
caused by the documentation of it. Additionally, some bad default settings
in the kickstart add even more problems on top of that.

> You will quickly find out that even many experienced developers still have
> problems with proper caching. Do you expect the average programmer will
> ever be able to do proper caching with tslib_pibase?

If we tell him why, then yes.

> When I suggested improvements to the responsible persons the answer was
> meaningful silence instead of taking up my thoughts and find out how it
> could be done. I am tired now of this way. It was practically impossible
> to get tslib_pibase improved. So the only consequence it to replace it.
> Masi is fully right in this.

We're once again at the subject of compatibility. I agree completely that
tslib_pibase should be replaced with something better, and apparently you
are already doing that.

But meanwhile, do not expect that many extensions will be adapted to this
framework within a recent amount of time. Extension authors will hopefully
fix a few lines, but most of them will probably never switch their whole
plugin to a new architecture.

In 3 or 4 years, after the new framework may be ready and stable, and the
kickstarter has been adapted for it, we may be happy that the problems are
solved. But this doesn't solve these problems _now_!

So, what I want is to solve as much as we can out of these problems with the
existing resources. We just advice people how they can easily _identify_
caching problems and _fix_ them with minimal efforts.

A good start would be the article which you wrote and published here some
time ago:
http://t3flyers.wordpress.com/2006/09/11/a-quick-guide-to-correct-caching-with-pi_base/

Maybe it could be integrated easily into this one?
http://typo3.org/development/articles/the-mysteries-of-chash/

(There are some things which are still missing in both of them, though. But
it would be a good start at least.)

This should not only help extension owners, but also customers of such an
extension (companies who need to fix performance problems on their
customers websites), because they can easily localise these problems.

Bottomline: We don't need to change tslib_pibase for fixing the caching
problems because most of this functionality is already there.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-dev mailing list