app/controllers/editmode_controller.rb in editmode-1.1.9 vs app/controllers/editmode_controller.rb in editmode-1.2.0
- old
+ new
@@ -11,11 +11,10 @@
elsif params[:variable_cache_project_id]
project_id = params[:variable_cache_project_id]
Rails.cache.delete("chunk_#{project_id}_variables")
render status: 200, json: {:response => "success"}
elsif params[:identifier]
- Rails.cache.delete("chunk_#{params[:identifier]}")
- Rails.cache.delete("chunk_#{params[:identifier]}_type")
+ Rails.cache.delete_matched("#{params[:identifier]}")
render status: 200, json: {:response => "success"}
else
render status: 404, json: {:response => "no identifier specified"}
end
\ No newline at end of file