Cache Browser app

Operations Bundled: Community edition

Edition CE, Cloud

License

MLA, GPL

Issues

Maven site

Latest

6.0.2

The Cache Browser app allows you to log in - remotely and simultaneously - to all public instances from the author instance to manage the cache. The app is a central point to control what’s in the cache. You can force-flush items by deleting, and download items for inspection and comparison.

No configuration is required. The public instances are detected automatically from the receiver configuration. The app is implementation-agnostic and works in the same way regardless on the installed cache engine.

The app is a subapp of the Cache Tools app.

Installing with Maven

Maven is the easiest way to install the module. Add the following to your bundle:

<dependency>
  <groupId>info.magnolia.cache</groupId>
  <artifactId>magnolia-cache-browser-app</artifactId>
  <version>6.0.2</version> (1)
</dependency>
1 Should you need to specify the module version, do it using <version>.

Usage

The browser displays the content of the cache on all public instances. It gives you a single place of control and lets you explore the cache.

  • You can see whether content exists on only one or multiple public instances.

  • Compare content on different instances. For example, check whether the same image is served.

  • Check how your load balancer is working. For example, see if the cache is distributed evenly between instances.

To use the app:

  • On the author instance open the Browser subapp and log in. For your security, passwords are not stored. You need to login every time you use the app.

Login

  • In the cache browser you can:

    • Download items for inspection. Multiple items are delivered in a ZIP file.

    • Delete items to force-flush them from the cache.

Cache tools app Browser tab

Issues

MgnlContext is not set for this thread

When reloading rest endpoints through light-modules, you may encounter the following issue:

2024-09-18 16:07:29,286 ERROR info.magnolia.context.MgnlContext                 : MgnlContext is not initialized. This could happen if the request does not go through the Magnolia default filters.
java.lang.IllegalStateException: MgnlContext is not set for this thread
	at info.magnolia.context.MgnlContext.getInstance(MgnlContext.java:282) ~[magnolia-core-6.3.0.jar:?]
	at info.magnolia.objectfactory.guice.GuiceContextAndScopesConfigurer$1.get(GuiceContextAndScopesConfigurer.java:63) ~[magnolia-core-6.3.0.jar:?]
	at info.magnolia.objectfactory.guice.GuiceContextAndScopesConfigurer$1.get(GuiceContextAndScopesConfigurer.java:60) ~[magnolia-core-6.3.0.jar:?]
	at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) ~[guice-5.1.0.jar:?]
	...
2024-09-18 16:07:29,286 ERROR info.magnolia.event.SimpleEventBus                : Exception caught when dispatching info.magnolia.rest.registry.EndpointDefinitionRegistryEvent with info.magnolia.rest.RestDispatcherServlet eventHandler.
info.magnolia.objectfactory.MgnlInstantiationException: Failed to create instance of [class info.magnolia.cloud.bootstrapper.rest.CloudCacheEndpoint]
	....
Caused by: info.magnolia.objectfactory.MgnlInstantiationException: Failed to resolve param [2] of type [class info.magnolia.i18nsystem.SimpleTranslator]
	at info.magnolia.objectfactory.ObjectManufacturer.resolveParameters(ObjectManufacturer.java:146) ~[magnolia-core-6.3.0.jar:?]
	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:91) ~[magnolia-core-6.3.0.jar:?]
	at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:134) ~[magnolia-core-6.3.0.jar:?]
	... 36 more
Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) [Guice/ErrorInCustomProvider]: IllegalStateException: MgnlContext is not set for this thread
  at GuiceContextAndScopesConfigurer.configure(GuiceContextAndScopesConfigurer.java:60)
      \\_ installed by: Modules$OverrideModule -> Modules$OverrideModule -> GuiceComponentProviderBuilder$1 -> GuiceComponentConfigurationModule -> GuiceContextAndScopesConfigurer
  at ContextLocaleProvider.<init>(ContextLocaleProvider.java:52)
      \\_ for 1st parameter
  while locating ContextLocaleProvider
  at SimpleTranslator.<init>(SimpleTranslator.java:51)
      \\_ for 2nd parameter
  while locating SimpleTranslator

The issue is addressed by the following JIRA tickets:

Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the DX Core docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules