Git Product home page Git Product logo

warmup's Introduction

Cache Warmup for TYPO3

This extension provides a simple command line tool for warming up certain caches.

This extension is especially useful for large installations that deploy and then flush caches.

The current state is intended for TYPO3 v8 LTS, and handles the Rootline Cache.

For TYPO3 v9 LTS, pages can be called as well.

Rootline Cache

One of the main issues here is a large installation with lots of pages. A cache:flush via TYPO3 console will empty the information on the rootline cache. When a visitor visits the page again after flushing the cache, and the page has 100 links to other pages, the rootline for each of the page will be built. This could take several seconds. A second visitor could visit the page and then see the nice "Page is being generated" screen. This can be improved!

A command line script runs directly after cache:flush and warms up all caches. This is mostly cache_core (by running the script itself) and cache_rootline.

./typo3/sysext/core/bin/typo3 cache:warmup

Running the script multiple times does not matter, as it solely acts as a wrapper for fetching the rootline for a page. If it is already in the cache, the command runs smoothly.

Installation

Install the extension by extracting the contents of this folder into typo3conf/ext/warmup and install the extension via the Extension Manager.

Alternatively, you can use composer via composer req b13/warmup.

Notes

Note that this extension does not take workspaces or mount points into account currently! Contributions are welcome.

Credits

  • Benni Mack

License

GPL2.0+, see LICENSE.txt for more details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.