Download the PHP package ichhabrecht/intcache without Composer
On this page you can find all versions of the php package ichhabrecht/intcache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ichhabrecht/intcache
More information about ichhabrecht/intcache
Files in ichhabrecht/intcache
Package intcache
Short Description Turn uncachable page objects into cacheable links
License GPL-2.0-or-later
Homepage https://github.com/IchHabRecht/intcache
Informations about the package intcache
TYPO3 Extension intcache
Turn uncachable page objects into cacheable links
Pages that contain uncachable content elements (INT-objects, uncached plugin content) are delivered with a no-cache header to the user. This extension replaces the uncachable content elements and provides urls to fetch the content asynchronous.
The content is replaced either as
- div-container for JavaScript/Ajax processing
- SSI block for NGINX or Apache processing
- ESI block for Varnish processing
Installation
Simply install the extension with Composer or the Extension Manager.
composer require ichhabrecht/intcache
Usage
- include the provided static TypoScript of the intcache extension
JavaScript
- for each element a div-container with classes
intcache intcache-item intcache-linkis rendered - the source url is provided as
data-srcattribute - you need to provide a script that iterates over all div's and fetches the content from provided urls
Server Side Includes
-
enable SSI support in your NGINX configuration
- change TypoScript to use SSI rendering
Edge Side Includes
-
enable ESI support in your Varnish configuration
- change TypoScript to use ESI rendering
Additional configuration
intcache handling
To be able to deactivate the intcache handling on certain sites and/or domains, you can explicitly disable it using
the TypoScript setup config.intcache = 0.
Templates
Simply set the templateRootPath TypoScript constant to provide an additional template path.
By default the files Intcache.ajax, Intcache.esi or Intcache.ssi are used for rendering (according to your current
format setting). You may want to change the lib.intcache.format TypoScript setting to add your own format.
Content
To be able the see the current content without any further processing, the content is rendered if the TYPO3 Development application context is enabled.
Cache timeout
By default all urls send a no-cache header to the user. You can define own cache timeouts by using cache_timeout
TypoScript configuration.
Example configuration for COA_INT objects:
Example configuration for plugins:
Community
- Thanks to elementare teilchen GmbH that sponsors the maintenance of this extension with a GitHub sponsorship