class ApiSweeper < ActionController::Caching::Sweeper
  observe Category, Entry

  def after_save record
    expire_action(:controller => "/api/sync", :action => "all")
  end
end 
class ApiSweeper < ActionController::Caching::Sweeper
  observe Category, Entry

  def after_save record
    expire_action(:controller => "api/sync", :action => "all")
  end
end 
Remove the leading slash on the cache action to expire for the namespace
@thenathanjones: Remove the leading slash on the cache action to expire for the namespace
