Skip to content

v1.7.1 - Bugfix: Cache Invalidation

Latest

Choose a tag to compare

@defcon1702 defcon1702 released this 16 Feb 08:09

🐛 v1.7.1 - Bugfix Release

Fixed

Cache Invalidation for New Forms

  • Problem: Newly created WSForm forms were not detected in the plugin UI
  • Cause: 5-minute transient cache without proper invalidation
  • Solution: Hash-based cache validation using MD5(id:date_updated)

How it works:

  • Cache now checks MD5 hash of all forms (ID + date_updated)
  • When forms list changes (new forms, updates, deletions), hash differs
  • Cache automatically invalidates on changes
  • New forms appear immediately in plugin UI

Benefits

✅ Immediate detection of new forms
✅ Automatic invalidation on updates/deletions
✅ Maintains performance benefit of caching
✅ No dependency on WSForm hooks

Changed Files

  • admin/class-rest-api.php: Hash-based cache validation for get_forms()

Info

  • Bugfix release for v1.7.0
  • No breaking changes
  • Fully backward compatible
  • Tested on WordPress 5.8+ and PHP 7.4+

Full Changelog: CHANGELOG.md