2017 © Pedro Peláez
 

neos-yeebase fusion-contentcachedebug

Helper package to visualize fusion content cache

image

yeebase/fusion-contentcachedebug

Helper package to visualize fusion content cache

  • Monday, July 16, 2018
  • by johannessteu
  • Repository
  • 4 Watchers
  • 14 Stars
  • 385 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Yeebase.Fusion.ContentCacheDebug

The Yeebase.Fusion.ContentCacheDebug package is a helper package to visualize your cache configuration. Once the package is active, administrators can view a cache configuration overlay on the website to see exactly which parts of the website are cached like, (*1)

Installation & configuration

Install the package via composer, (*2)

composer require yeebase/fusion-contentcachedebug

The debug mode is disabled by default. To enable it add this to your Settings.yaml, (*3)

Yeebase:
  Fusion:
    ContentCacheDebug:
      enabled: true

Now the package is active and will render some metadata in your html output if the current user inherits the role Yeebase.Fusion.ContentCacheDebug:Debugger. Only user with this role will be able to see the debug information., (*4)

To get the debugger running you now need to include some javascript and css to acutally be able to render the output. For Neos we already adjusted the Neos.Neos.Page prototype. Include this in your Root.fusion of your site package:, (*5)

include: resource://Yeebase.Fusion.ContentCacheDebug/Private/Fusion/Root.fusion

If you're running a fusion standalone app check that code and include it the js and css files to your page., (*6)

Usage

To enable the cache visualization open your browsers developer console and execute __enable_content_cache_debug__(). This will add three new buttons., (*7)

🔦 toggle visualization, (*8)

📋 displays a list of used cached entries in a hierarchical order, (*9)

❌ disable debug mode, (*10)

If you'd like to persist the active debug state you can add a true to the method, (*11)

__enable_content_cache_debug__(true)

This will set a cookie and the debug mode will still be active after a page refresh., (*12)

Demo, (*13)

The Versions

16/07 2018

dev-master

9999999-dev

Helper package to visualize fusion content cache

  Sources   Download

MIT

The Requires

 

16/07 2018

1.0.1

1.0.1.0

Helper package to visualize fusion content cache

  Sources   Download

MIT

The Requires

 

05/06 2018

1.0.0

1.0.0.0

Helper package to visualize fusion content cache

  Sources   Download

MIT

The Requires