close
Transients

Transients by Tess

Save cached versions of data, set an expiration time, and help limit the amount of requests per page.

FREE


Version Miva 10: 1.015 & Miva 9: 1.013 View install docs (PDF) Get Support

Description

Version 1.014 is for Miva 10 or later.

This allows you to save data into the database, but also tie it to an expiration date. This module has built in functions very similar to how Miva's custom fields functions work and allows you to set and get transients from Miva. Common use cases are to "cache" dynamic content from a 3rd party source such as Twitter, Facebook or Instagram. Instead of making a call to them, each page load you can do it once and cache the data for a specific time period. This gives you an easy way to use dynamic content from 3rd party sources without the overhead of getting the content on each page load

Save Cached versions of data, set an expiration time, and limit the amount of requests per page.

Click here for Documentation & Examples


Storing data from an API can help reduce page load times.
Example:
Twitter(OAuth/API) + Instagram(API) = 3.28s
Twitter(Transient) + Instagram(API) = 2.95s
Twitter(Transient) + Instagram(Transient) = 2.45s

The time below was recorded with all APIs "transiented". (Aka: called from the database, instead of 3 calls to apis)
2.22s (That saved 1.06 seconds of load time!)


Instead of making 3 calls per page load to Twitter (2 calls) and Instagram (1 call), we can store the data we retrieve from the call, save it for about an hour, and save page load time.

Reviews
Not Yet Rated | Write the First Review

Customer Ratings & Reviews

Be the first to rate this item!

Write Review

Release Notes
12/29/2020 - v1.015
Fixed issue on 10 with Transient_ReadyTheme_Image

09/22/2020 - v1.014
Updates to support Miva 10

03/27/2019 - v1.013
Developer Info

Tess

Professional Services Lead Web Developer

Website

miva.com

Support Phone

800-608-MIVA

Support Email

Copyright © 1997 – 2024 Miva®, Miva Merchant®, MivaPay®, MivaCon®, Camp Miva®, Miva Connect®, Miva, Inc. All Rights Reserved.