Skip to main content

Version Docs Updated

Purpose

Explains the caching architecture Rentiva uses to operate efficiently on high-traffic vehicle rental sites, and how to resolve common performance issues.

⚑ Performance & Cache Management

The system provides optimization across three main layers: Object Cache, Transients, and Page Cache.


πŸ› οΈ 1. Caching Layers​

WordPress Transients (Database Level)​

  • Usage: Price calculations, complex vehicle listing queries, and vendor analytics.
  • TTL (Lifetime): Typically 15 minutes (900 seconds) for critical data.
  • Important: If Transients accumulate in the database without being cleared, they can cause site-wide slowdowns. Use mhm_rentiva_flush_cache for manual cleanup.

Object Cache (Memory Level)​

  • Usage: If Redis or Memcached is active, the system retrieves all object data from memory.
  • Advantage: Reduces SQL query count by up to 80%.
  • Caution: If you are experiencing data inconsistencies, temporarily disable Redis and test the issue.

🐒 2. Common Performance Issues​

Slow Vehicle Search Results​

  • Reason: Searching across too many WP_Query meta keys.
  • Fix: Activate the Rentiva "Meta Optimizer" feature. Consider storing frequently used meta data (Make, Model, Year, etc.) in a separate table or an optimized index structure.

Slow Admin Panel Management Pages​

  • Reason: A large volume of booking data (10k+) being listed at the same time.
  • Fix: Reduce the pagination count (Default: 20). Disable unnecessary columns from the "Screen Options" menu.

πŸ•’ 3. Stale Data Issues​

I changed a setting but it's not reflecting on the frontend?​

  • Possible Reasons:
    1. Page Cache: The page cache of plugins like WP Rocket or LiteSpeed is out of date.
    2. Fragment Cache: Areas like the pricing table or FAQ may have independent caches.
  • Fix: Press the Cache Reset button at Rentiva > Quick Actions > Reset Cache.

πŸ“ˆ 4. Monitoring & Measurement​

Monitor the following to track your site's performance:

  • TTFB (Time to First Byte): Server speed and PHP execution time.
  • Query Count (SQL Queries): Use the "Query Monitor" plugin to see Rentiva queries as a share of the total.
  • Cron Jobs: Check whether financial updates or cleanup tasks are running on schedule.

Checklist​

  1. Check Redis/Memcached status.
  2. Verify page cache exclusions (the checkout page must be excluded).
  3. Optimize unnecessary meta queries.
  4. Perform periodic "Database Cleanup".

Changelog​

DateVersionNote
23.04.20264.27.2English translation added.
19.03.20264.21.2Object Cache, Transients, and Stale Data scenarios added.