Giter Club home page Giter Club logo

autoflush's Introduction

Automatic cache flush for TYPO3

This extension adds the required bits to enable cache flushes not implemented by the TYPO3 core.

It hooks into frontend rendering and backend data handling โ€“ this is to add cache tags while rendering which will be flushed by the backend data handling hooks.

Currently supported features:

  • Menu flush for page-related operations: add, remove, rename, hide, time-based (un)publish
  • Subtree flushing when pages.media is changed (for the usecase where header images are inherited using levelmedia)

Configuration

For the basic functionality no configuration is required. Just install the extension and stop using the "flush frontend caches" button whenever you rename, delete, hide or add a page.

composer require qbus/autoflush

Cache flush for time-based page publishing

There's an extbase command controller which should be run from a cronjob (directly or indirectly through the scheduler). The command controller will clear the cache for all pages that render references (menus) to pages that are published by time.

typo3/sysext/core/bin/typo3 autoflush:clearmenuforpulishedpages

The command will flush references for new/expired pages since the last and the current run of the command. Therefore you should run this command frequently to reduce the time where menu's are out-of-date.

TODO

  • Category based menus
  • create menu_pid_ tags for pages that could eventually render a submenu (but do not have child pages yet)

autoflush's People

Contributors

bnf avatar nhovratov avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

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.