🗺️
Mapster WP Maps
HomeProExamplesContact
  • Getting Started
    • About
    • Installation
    • Key Concepts
    • Importing/Exporting
    • Guides
      • Your First Map
      • Creating a Crowdsourced Map
      • Set Up Recurring Import
      • Adding a Custom Style
      • Building a Custom Popup
  • Creating Shapes
  • Displaying Maps
  • Maps
    • Map Tiles
    • Initial View
      • Fit to Features
      • Manual Values
      • User Location
    • Map Size
    • Points, Lines, Polygons
    • Clustering
    • Interactivity
    • Controls
      • Basic Controls
      • Geocoding & Geolocation
      • Togglers
      • Other Controls
      • Control Render Order
    • Filters
      • Category Filter
      • Custom Search Filter
      • Filter Dropdown
    • Lists
      • Store Locator
    • Specialty Maps
      • Map Comparer
      • Heatmaps
      • Elevation Profile
      • User Submission
      • Listing Page Map
    • Preloader
    • Developer
      • Javascript
      • Embedding Maps
      • Faster Loading (Cache)
      • Caching
      • Progressive Loading
      • Query String Control
  • Locations
    • Markers
    • Circles
    • Labels
    • Icons
    • 3D Models
  • Lines
    • Lines
  • Multi Lines
  • Polygons
    • Flat Polygons
    • 3D Polygons
    • Image Polygons
  • Multi Polygons
  • Popups
    • Popup Templates
      • Introduction
      • Layout, Colors, Text, CSS
      • HTML
      • Options
    • Popup Content
  • Pro Sections
    • User Submission
      • Overview
      • Submission Interface
      • Adding Custom Fields
      • Submission Admin
  • Mass Edit
  • Settings
    • General
    • Account Management
  • Advanced
  • Import
  • Tileset Management
  • Developer
    • Mapster Map ACF Field
    • Mapster Map Gravity Forms Field
    • Custom Scripts
    • Hooks
    • Spatial DB & API
    • Internationalization
Powered by GitBook
On this page

Was this helpful?

  1. Maps
  2. Developer

Faster Loading (Cache)

Make your maps with tons of data much faster to load!

PreviousEmbedding MapsNextCaching

Last updated 25 days ago

Was this helpful?

Available in Pro only.

Although we don't generally recommend using Mapster for many thousands of features (it's better to start looking into tiling services at that point), it can be functional depending on your use case. If you have a lot of geographical features and you are finding that the map is slow to load -- or you just want to optimize your site and load time -- you can look into using our Pro Caching feature.

Caching will create a static file that contains all the geographic information for your map, so that the Wordpress backend doesn't have to execute any complicated PHP queries in order to put together all that information on an on-demand basis for users.

This is great for a few use cases:

  • Speeding up responses for maps that aren't updated often

  • Preventing maps that contain hundreds or thousands of features from executing long queries on every load

For maps that are updated automatically or very often, the caching feature isn't ideal, because a new cache needs to be manually generated every time.

To create a cache, just go to the "Developer" tab for the map you want to cache. Make sure the map has all the features and settings you want. Turn on the "Cache" button, and then press "Generate Cache". Depending on the size of your map, this may take up to a minute to generate, and then you will get a success message.

As long as the button for the Cache stays on, your map will now use the cache.

Anytime you make an update, such as adding features or changing settings, you will need to Generate Cache again for those to show up in the front end.