Title: Support REDIS Cache
Last modified: July 29, 2023

---

# Support REDIS Cache

 *  Resolved [thyagonet88](https://wordpress.org/support/users/thyagonet88/)
 * (@thyagonet88)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/support-redis-cache/)
 * Do you have support REDIS save update statistics in REDIS ? I’m using Google 
   Analytics.
   My client like visual Statistic AdRotate. I’m client AdRotate Pro.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/support-redis-cache/#post-16932501)
 * I’m not sure what you mean, but no AdRotate does not support redis. It just uses
   the same database stuff as WordPress does.
    If you have some conversion layer
   to have wpdb talk to redis that’ll probably work.
 *  Thread Starter [thyagonet88](https://wordpress.org/support/users/thyagonet88/)
 * (@thyagonet88)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/support-redis-cache/#post-17028526)
 * In WordPress, utilizing Redis for insert/update operations with a 1-minute TTL
   via a crontab job can enhance efficiency. Here’s a simplified overview of the
   process:
    1. **Redis Configuration**: Set up Redis as an in-memory cache for WordPress. This
       can be done using plugins like Redis Object Cache or by custom configuration.
    2. **Insert/Update with TTL**: When inserting or updating data in WordPress, store
       the data in Redis with a 1-minute TTL (Time To Live). This ensures the data 
       is available temporarily for fast retrieval.
    3. **Crontab Job**: Create a scheduled crontab job that runs every 30 seconds. 
       This job is responsible for fetching data from Redis that has not expired (still
       within the 1-minute TTL window).
    4. **Data Retrieval**: In the crontab job, retrieve relevant data from Redis. This
       data can be aggregated, processed, or prepared for insertion into MySQL.
    5. **MySQL Insertion**: Insert the processed data into the MySQL database. This
       can be done efficiently since the data is preprocessed and ready for insertion.
    6. **Lightweight Statistics**: By using Redis as an intermediate cache, you reduce
       the load on your MySQL database. Frequent, resource-intensive operations are
       offloaded to Redis, making your statistics system more lightweight and responsive.
 * This approach leverages Redis for caching and offloading real-time data processing,
   resulting in a more efficient and responsive statistics system in WordPress.
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/support-redis-cache/#post-17028559)
 * Right, well as I said, if you have a system that does that through wpdb that 
   should work.
    AdRotate has no dedicated support for Redis, nor did I ever see
   a plugin that handles that on its own.
 *  Thread Starter [thyagonet88](https://wordpress.org/support/users/thyagonet88/)
 * (@thyagonet88)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/support-redis-cache/#post-17028591)
 * In this plugin insert/update:
 * [https://wordpress.org/support/topic/do-you-want-to-support-google-analytics-or-redis/](https://wordpress.org/support/topic/do-you-want-to-support-google-analytics-or-redis/)
 * Is WPDB a WordPress plugin or function? Thanks for the answers!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Support REDIS Cache’ is closed to new replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [thyagonet88](https://wordpress.org/support/users/thyagonet88/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/support-redis-cache/#post-17028591)
 * Status: resolved