• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

TYPO3 Caching

on

  • 9,305 views

This presentation shows the various caching mechanism that can be used with TYPO3

This presentation shows the various caching mechanism that can be used with TYPO3

Statistics

Views

Total Views
9,305
Views on SlideShare
9,304
Embed Views
1

Actions

Likes
2
Downloads
0
Comments
0

1 Embed 1

http://de.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

TYPO3 Caching TYPO3 Caching Presentation Transcript

  • TYPO3 and Caching
  • Why Caching? Speed !!!
  • 5x to 500x Database Total Time for Page 437163 83 10 0 1MySQL Select Queries ms no Cache DB Cache File Cache
  • Why Caching ?Enables Search !
  • Administrators• USER TSconfig: options.clearCache.pages = 1
  • • PAGE TSconfig on ID=29 TCEMAIN.clearCacheCmd = 28,30,31
  • • PAGE TSconfig on ID=29 TCEMAIN.clearCacheCmd = 28,30,31
  • TYPO3 Database• cache_pages• cache_pagesection• cache_hash Use phpMyAdmin to check, whether caching works!
  • Cache Tables• cash_hash • used by TYPO3 functions, e.g. substituteMarkerArrayCached• cash_pagesection • mainly parsed TypoScript templates• cash_pages
  • Static Pages• Content identical with each request• Caching is no problem at all!
  • Dynamic Pages• Different Content depending on Parameters • Language • News, Forum, Guestbook, ... • Search Results
  • Dynamic Pages• Cache multiple versions (i.e. Languages)• Do not cache page• Cache page partially
  • Disable Caching• Page properties• URL: no_cache=1• TypoScript: config.no_cache = 1• PHP: $GLOBALS[TSFE]->set_no_cache ()
  • Combining dynamic/static• USER vs. USER_INT• COA vs. COA_INT
  • Placeholder in Cache• <div class="tx-democache-pi1">n <h1>Cached time is 08:32:15</h1>n </ div>n </div><div id="c130" class="csc-default "><!--INT_SCRIPT. 6db09167c1895600be18c336bbf64743--></div>
  • File Caching• Extension nc_static_filecache• Uses mod_rewrite and mod_expires• For static pages only
  • Clientside Caching• HTTP 1.1 with Cache Control Headers • Page has been cached in TYPO3 • uses no _INT Objects • No logged in FE/BE Users config.sendCacheHeaders = 1
  • Caching Framework• Introduced in TYPO3 Version 4.3.1• alternative Caching Methods: • Database, File, memcached, APC, ...• API in Extensions• Configuration for cache_hash, cache_pages, cache_pagesection
  • Caching Framework
  • Frontend (what)• t3lib_cache_frontend_VariableFrontend• t3lib_cache_frontend_StringFrontend• t3lib_cache_frontend_PhpFrontend
  • Backend (how)• t3lib_cache_backend_DbBackend• t3lib_cache_backend_FileBackend• t3lib_cache_backend_GlobalsBackend• t3lib_cache_backend_MemcachedBackend• t3lib_cache_backend_PdoBackend• t3lib_cache_backend_NullBackend• t3lib_cache_backend_TransientMemoryBackend
  • memcached• Cache Server (TCP/IP)• BSD License• Key/Value Storage• PHP Extension memcached.so
  • APC• Alternative PHP Cache• OpCode cache for optimizing intermediate PHP code• Provides a library of functions for caching
  • MySQL Query Cache• Stores SELECT statement along with corresponding result• Shared among sessions
  • Recommended Reading• wiki.typo3.org/Caching_framework• danosipov.com/blog/?p=322• dmitry-dulepov.com/article/how-to-enable- memcached-cache-in-typo3-43.html