[Typo3-dev] Plugin needs to be cached but sometimes not

Michael Stucki michael at typo3.org
Fri Nov 26 17:32:03 CET 2004


Hi Christoph,

thanks for your suggestion.

> Hmmm. Add a DB field containing an MD5 hash as of "ls -alR | md5sum" of
> the directory (might be slow) and have that one written to the DB (upon
> every n-th access to the page), if changed. Accordingly, copy the old
> MD5 value to another DB field for comparison. If md5_cur and md5_old
> don't match, run $GLOBALS["TFSE"]->set_no_cache();

This won't work, because once the content object is cached as a USER cObj,
it will no longer open any PHP scripts inside of your extension.

I just made a test for this. Renamed the pi1/ directory and reloaded the
cached page. There were no errors, everything appears just as usual.

So the check must be done before but I have no idea if and how this is
possible yet.

Regards, michael
-- 
Want support? Please read the list rules first: http://typo3.org/1438.0.html




More information about the TYPO3-dev mailing list