Class: EditmodeController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- EditmodeController
- Defined in:
- app/controllers/editmode_controller.rb
Instance Method Summary collapse
Instance Method Details
#clear_cache ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/editmode_controller.rb', line 3 def clear_cache if 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"} end end |