[TYPO3-dev] Testing TYPO3 caching vs. [FE][pageCacheToExternalFiles]

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Apr 12 16:03:28 CEST 2006


Bernhard Kraft schrieb:
> 
> The problem is you can't just simply generate static *.html files out of 
> the content because then any setting
> of "Start" and "Stop" won't be respected any more ....

I had the idea to set up a special file cache for Apache that contains only 
safe pages:

* fe_login_mode is set to "disable" (no dependencies on users)
* no start/stop is set (no time restriction)

On storing the cached page the name of the cachefile added to a DB (Berkley 
DB or other). Keys are the default URL (index.php) and possibly the 
Real-URL URL (path). This DB-map is used by an Apache module, either a 
special one or good ol' mod_rewrite.

Of course the keys have to be deleted when the cache is cleared (completely 
or specific page). I don't know if the cache API of TYPO3 is finegrained 
enough and has enough hooks for this.

With this setup you have full file access with Apache without starting PHP 
at all.

If you write a special Apache mod it might even be possible to serve pages 
in login mode. But somehow the module must know which user belongs to what 
FE group. It's possible to solve this as well but a tick more complicated.

Masi




More information about the TYPO3-dev mailing list