Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-296

DOC-DEV: Review the Caching-arbitrary-objects page (6.2)

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None
    • 3

    Description

      We have been notified by Tobias there may be issues on the page:

      a customer tried to use "Caching arbitrary objects" as described in this documentation part:
      https://docs.magnolia-cms.com/product-docs/6.2/Modules/List-of-modules/Cache-modules/Caching-arbitrary-objects.html#_get_the_cache Unfortunately, it was not working for him. But he got it working with a small change like this:

      public class MyClass {
      private final CacheFactoryProvider cacheFactoryProviderProvider;
      @Inject
      public MyClass(CacheFactoryProvider cacheFactoryProviderProvider)
      
      Unknown macro: { this.cacheFactoryProvider = cacheFactoryProvider; }
      public void fooBar(){
      Cache cache = cacheFactoryProvider.get().getCache("fooBarCache");
      }
      }
      

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              mdrapela Martin Drápela
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoR