Menu Close Menu
Menu
  • 0
    • Number of items in basket: 0

      • Your basket is empty.
      • Total: £0.00
      • Checkout
  • Add-ons
  • Support
    • Documentation
    • Report a Bug
    • Submit a Support Ticket
    • Get Involved
    • Terms and Conditions
  • Your Account
    • Register
  • Blog
  • Contact Us

What is the MDJM Cache Helper

What is the MDJM Cache Helper

Why does MDJM need a cache helper?

Since version 1.4.7.1 the MDJM Cache Helper class has been included within the core MDJM plugin.

The cache helper exists to instruct caching plugins not to cache specific pages to ensure that content is always served correctly to any visiting user.

Some pages display content dependent on the type of visitor, for example a logged in user may need to see content and a non-logged in user may need to see different content.

As an example, let’s use a contact page which contains an MDJM Dynamic Contact Form. Many caching plugins will cache a page the first time it is visited. If an employee visits a page which contains a Dynamic Contact Form, a notice is displayed instead of the form advising that employees cannot submit the form.

If this page, in its current state, is cached, then the next visitor, which may be a real client wishing to submit an enquiry, will see the no employee notice also. Not good!

The MDJM Cache Helper ensures this does not happen.

Which Pages are Excluded from Caching with the Cache Helper?

Through its cache helper, MDJM will attempt instruct caching plugins to exclude all pages defined within MDJM -> Settings -> Client Zone -> Pages.

Page Settings

We make this instruction by defining various WordPress constants (notably the DONOTCACHEPAGE constant) which tells caching plugins to exclude these pages (so long as they are adhering to WordPress standards) as well as setting headers to prevent caching within different browsers.

FAQs Caching Last updated: July 5, 2017

Published by MDJM

Posts by MDJM Visit Website

Post navigation

Previous

Changing the MDJM Menu Position

Next

Template Files for Client Zone

Document Categories

  • Configuration
    • Advanced
  • Extensions
    • Dynamic Contact Forms
    • Google Calendar Sync
    • PayPal Standard
  • FAQs
  • Getting Started
  • Hooks
  • REST API

Latest Posts

  • PayPal Payment Method Discontinued
  • Enhancements! Enhancements! Enhancements!
  • Black Friday Offers
  • Stripe Payments Add-on

Social Links

  • Like our Facebook Page
  • Join our Facebook Group
  • Fork us on GitHub

Latest news & offers

Subscribe now to receive all the latest news, thoughts and offers from MDJM Event Management.
New subscribers will receive 15% off their first purchase.

© 2021 MDJM Event Management. All rights reserved.
  • Shop
  • Support
  • Account
  • Contact Us
  • Testimonials
  • Privacy Policy
  • Terms