Skip to content

Conversation

@soderlind
Copy link
Owner

This pull request migrates the plugin from Redis Queue Demo to Redis Queue, introducing a new namespace, renaming files, updating plugin metadata, and providing a migration path for existing options and Redis keys. It also introduces a new main class, updates all references from the old namespace and hooks to the new ones, and ensures backward compatibility during the transition. The changes modernize the codebase and prepare it for future development under the new name.

Migration and Namespace Updates

  • All PHP namespaces and class references have been updated from Soderlind\RedisQueueDemo to Soderlind\RedisQueue throughout the codebase, including in composer.json autoload configuration and all class files. [1] [2] [3]
  • All WordPress action and filter hooks were renamed from redis_queue_demo_* to redis_queue_* to match the new plugin identity. [1] [2] [3] [4] [5] [6] [7]

Plugin File and Option Migration

  • The main plugin loader is now redis-queue.php, with updated metadata and logic. The old redis-queue-demo.php remains temporarily as a legacy loader to avoid fatal errors during folder renaming, but delegates all logic to the new main file. [1] [2]
  • A migration routine was added to transfer options from the old redis_queue_demo_ prefix to the new redis_queue_ prefix, ensuring user settings are preserved.

Redis Key and Data Migration

  • Redis queue key prefixes changed from redis_queue_demo: to redis_queue:. Migration logic is included to automatically update legacy Redis keys and repair missing job class information.

New Main Plugin Class

  • Introduced the new Soderlind\RedisQueue\Core\Redis_Queue class, which handles initialization, activation/deactivation, database table creation, default options, REST API, and admin interface setup.

Job Type and Class Mapping Updates

  • All job type mappings and related logic now reference the new namespace, ensuring job processing and queue management use the updated class names. [1] [2] [3]

These changes comprehensively rebrand and modernize the plugin, while providing migration paths to avoid breaking existing installations.

@soderlind soderlind merged commit f6ac454 into main Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants