DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: Static File Cache

Author:Spyker
Created:2006-05-21T15:02:16
Changed:2006-09-15T14:51:58
Email:tim@fruit-lab.de
Info 2:
Info 3:
Info 4:

EXT: Static File Cache

Extension Key: fl_staticfilecache

Copyright 2006, Tim Lochmüller, <tim@fruit-lab.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

EXT: Static File Cache 1

Introduction 1

What does it do? 1

Requirements 1

Sponsors 1

Credits 1

Configuration 1

TYPO3 htaccess hack 2

To-Do list 2

Introduction

What does it do?

This extension generate Static Files from pages that the admin/editor choose. These files will load if a webuser visits your page. So... Typo3 isn´t load anymore at a Static File Cache Page.

Requirements

Developed and used @ Typo3 4.0.1

Sponsors

You may sponsor further development of this extension by sending your contribution by contacting the author. Please consider sponsoring only when you are willing to spend more than 20 Euro. Thank you very much!

Credits

Tim Lochmüller - typo3.fruit-lab.de

Configuration

After the installation of the Extension you get a new backend module. To config the Static File Cache extension you have to add same Lines to your htaccess file from the next Page. After the configuration you can choose the Cache Pages in the Static File Cache module.

Important detail: SimulateStaticDocuments or RealURL is needed, because no pages are cached where a GET or a POST Parameter is there!

TYPO3 htaccess hack

You have to add a mod_rewrite Rule to your htaccess file. (There is a example htaccess file in the EXT-dir of fl_staticfilecache)


############## Static File Cache ####################


RewriteCond %{REQUEST_METHOD} GET

RewriteCond %{QUERY_STRING} ^$

RewriteCond %{DOCUMENT_ROOT}/uploads/tx_flstaticfilecache%{SCRIPT_F ILENAME}%{PATH_INFO}cache.html -f

RewriteRule .* %{DOCUMENT_ROOT}/uploads/tx_flstaticfilecache%{SCRIP T_FILENAME}%{PATH_INFO}cache.html [L]

If the TYPO3 Installation isn´t in your root dir you have to add the absolute path to TYPO3 here instead %{DOCUMENT_ROOT}

Add the Rule OVER this TYPO3 Rules:

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]

To-Do list

  • Translate Extension in different languages.
  • Add features to the backend Module
  • Clean Source Code of the Extension

img-1 EXT: Static File Cache - 2