Skip to content

Commit 12b9dac

Browse files
committed
Deprecate InvalidateElementsCacheJob
Alchemy Core now has the same feature. Since jobs still might be enqueued in the background job processor, we deprecate it instead if removing it, although this extension will not enqueue new jobs.
1 parent e788a90 commit 12b9dac

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/jobs/alchemy/solidus/invalidate_elements_cache_job.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ class InvalidateElementsCacheJob < BaseJob
44
queue_as :default
55

66
def perform(model_name, id)
7+
Alchemy::Deprecation.warn <<~WARN
8+
Alchemy::Solidus::InvalidateElementsCacheJob is deprecated and will be removed in 9.0.
9+
Please use Alchemy::InvalidateElementsCacheJob instead.
10+
WARN
11+
712
now = Time.current
813

914
element_ids = model(model_name)

0 commit comments

Comments
 (0)