app/controllers/editmode_controller.rb in editmode-0.0.9.75 vs app/controllers/editmode_controller.rb in editmode-0.0.9.111

- old
+ new

@@ -1,9 +1,11 @@ class EditmodeController < ApplicationController def clear_cache - - if params[:identifier] + if params[:full] + Rails.cache.clear + render status: 200, json: {:response => "success"} + elsif params[:identifier] Rails.cache.delete("chunk_#{params[:identifier]}") Rails.cache.delete("chunk_#{params[:identifier]}_type") render status: 200, json: {:response => "success"} else render status: 404, json: {:response => "no identifier specified"} \ No newline at end of file