Naviga Web
Docs Home
  • Introduction
  • Release notes
  • Starter kit
    • Introduction
    • Environment Variables
    • Makefile
    • Changelog
    • API
  • Feature: Advanced Search
    • User guide
    • Search Help
    • How to Setup
    • Technical Details
  • Developer documentation
    • Developer prerequisites
      • Developer hardware suggestions
      • Setup on Windows
      • Setup on Linux/Ubuntu
    • Getting started with development
      • Composer package management
      • Gulp and asset building (optional)
      • Git
      • Hosts file
      • Certificate
      • Initiate Naviga Web
      • Start Naviga Web
      • Bin scripts
      • Create theme
      • Environments
      • Deployment
      • Onboarding tasks
        • #0 - New site
        • #1 - Configuration
        • #2 - Front page
        • #3 - Content presentation
        • #4 - OC List
        • #5 - Content containers
        • #6 - Teaser template
        • #7 - Single article
        • #8 - Widget
        • #9 - Custom task
        • #10 - Feedback
    • Architecture
    • Paywall and authentication
      • CloudFront Paywall
      • Engage paywall
      • Lua Paywall (deprecated)
    • Project management: A typical project
    • Database dump
    • Debugging
    • Keep your project up-to-date
    • Gulp and Sass
    • Domain mapping
    • Widgets overview
  • Starter kit packages
    • Base package
      • Changelog
    • Boards plugin (EveryBoard)
      • Installation
      • Setup
      • Board Widgets
        • Linked board
        • Template board
        • Embed widget
        • OC List item
        • Content container
      • Teaser templates
      • Actions and filters
      • Export - import
      • Changelog
    • ContentSync plugin
      • Usage
      • Changelog
    • Drop In Plugins package
      • Changelog
    • Everyware plugin
      • Installation
      • Setup
      • Actions and filters
      • Fetching lists and their content
      • Sorting
      • Widgets
      • Changelog
    • Imengine package
      • Helper class: Imengine
      • Changelog
    • NewsML package
      • Idf Parser
      • Changelog
      • Usage
    • NGINX conf package
      • API
      • Changelog
      • Usage
    • Presentation Preview plugin
      • API
      • Changelog
      • Usage
    • Support package
      • Changelog
    • Theme EU resources package*
      • Changelog
    • Theme US resources package
      • Changelog
    • Twig package
      • Development
        • Filters
          • class_string
          • spacey
          • trim_array
        • Functions
          • php_function
          • php_method
          • render_classes
          • render_partial
        • Operators
          • contains
      • Helper classes
        • View
        • ViewSetup
      • Changelog
  • Widgets and component packages
    • Article List widget
      • Installation
      • Using Article List
      • Changelog
    • Menu handler
      • Usage
      • Changelog
    • Section Header widget
      • Changelog
    • Social media icons widget
      • Installation
      • Changelog
    • Google Analytics plugin
      • Set up Google Analytics
      • Most read widget
      • Changelog
    • Redirect Original URLs plugin
      • Installation
      • Changelog
    • Settings Parameters plugin
      • Installation
      • Usage
      • Changelog
  • Design and theme packages
    • Base theme 1
      • Changelog
    • Base theme 2
      • Colors
      • Fonts
      • Header
      • Menus
      • Pages with Board
      • Sidebars
      • Teaser layouts
      • Article page (text)
      • Article page (embeds)
      • Changelog
    • Example theme
      • Changelog
  • MU Plugins
    • Project Plugin
      • Installation
      • Changelog
    • Starter Package Catalyst
    • Concepts
      • Admin Pages
        • All Concepts
        • Add New Concept
        • Types
        • Errors
        • Concept duplicates
      • API
      • Console
      • Changelog
    • Network
      • Changelog
    • Cache Invalidator
      • Getting Started & WP admin
      • Implementation of Lua endpoint
      • Filters
      • Changelog
    • RSS Feeds
      • Setup
      • Administration pages
      • Changelog
  • Services
    • Imengine
    • Imengine documentation
    • Open Content
    • Writer Bookmarklet
Powered by GitBook
On this page
  • Settings
  • Set query suffix
  • Run query lookup
  • Delete all queries
  • Event handling
  • Query Streamer connection status
  • Invalidation endpoint status
  • Debug data
  • Event log

Was this helpful?

  1. MU Plugins
  2. Cache Invalidator

Getting Started & WP admin

The cache invalidator works in two ways. It can register widget queries towards the QueryStreamer and/or it can listen to events coming from everyware notifier.

Settings

The first step is to setup the query streamer. You can find all the information you need in 1Password. Search for qs.

Example config:

URL:

https://querystreamer-stage.lcc.infomaker.io/v1/stream-provider/im-everyware-editorial/

Username:

im-everyware-editorial

Password:

Api-token

Set query suffix

Here you can append additional queries to all registered queries. Changes will only apply to queries already registered once a change is made. If you wish the suffix to be appended to old queries right away you need to run the query lookup.

Example

you have the following query registered in a widget:

contenttype:Article

By setting this suffix

AND group:Paper1

Would register this query towards the QueryStreamer

contenttype:Article AND group:Paper1

Run query lookup

Resets existing queries, refetches all widget queries and register them to the QueryStreamer.

Delete all queries

All registered queries will be removed from the database and unregistered from the QueryStreamer.

Event handling

Check if you wish to listen to and invalidate from other events than those coming from the QueryStreamer.

The different events are: when a post gets saved, trashed, deleted, or when a board changes and when a widget gets updated.

Additionally there's two events that requires the notifier to be configed in Everyware. These two events triggers when a article or list updates from open content.

Query Streamer connection status

If your connection is successful you should see a green icon.

Invalidation endpoint status

If you have setup your lua endpoint correctly there should be a green icon.

Debug data

Shows all queries the plugin have registered, on what pages they're being used and by which widget.

Event log

This log shows you all events the plugin have picked up.

A event can have three different statuses.

Nothing to invalidate - which means the object could not be found in the cache.

Error - Something went wrong. Make sure your config is correct.

Success - The object was successfully removed from the cache.

PreviousCache InvalidatorNextImplementation of Lua endpoint

Last updated 5 years ago

Was this helpful?