GithubHelp home page GithubHelp logo

froemken / cache-analyzer Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 69 KB

TYPO3 extension to analyze the data sent to Caching Framework before it is written

License: GNU General Public License v2.0

PHP 66.27% Shell 33.73%

cache-analyzer's Introduction

TYPO3 Extension cache_analyzer

Latest Stable Version TYPO3 13.2 License Total Downloads Monthly Downloads Build Status

With cache_analyzer you can analyze the data which will be written to the Caching Framework. You can filter it by specific keywords or regular expressions. You can also enrich the logged data with environment variables like GET, POST, a Backtrace and much more. Also, you could throw exceptions to prevent writing invalid cache entries into the Caching Framework.

The initial idea behind this was, that "sometimes" my website showed empty href attributes of HTML a tags. I searched a very long time to find that error, but without success. I then hooked into the Caching Framework to protocol everything which matches href="". A day later of logging data, I found the issue and saw that the site was called with an invalid L parameter.

cache_analyzer is a debugging tool and should not be part of production mode forever. As it hooks into the Caching Framework it may slow down your site. So, please uninstall that extension after you have found your issue.

Installation

Installation using Composer

The recommended way to install the extension is using Composer.

Run the following command within your Composer based TYPO3 project:

composer require stefanfroemken/cache-analyzer

Installation as extension from TYPO3 Extension Repository (TER)

Download and install cache_analyzer with the extension manager module.

Minimal setup

  1. Create a record of type "Cache Expression" on root page (PID: 0)
  2. Enter fields title, expression and at lease one cache configuration
  3. Clear Cache
  4. Wait and let your website visitors requests your website
  5. If an expression matches the log in var/log will be filled with additional environment variables

Have a look into the log to see, which request creates your log entry

cache-analyzer's People

Contributors

froemken avatar garvinhicking avatar

Stargazers

Guillaume Germain avatar Martin Adler avatar Simon Schaufelberger avatar

Watchers

 avatar

Forkers

garvinhicking

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.