```ruby
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
user
```ruby
class ApiSweeper < ActionController::Caching::Sweeper
  observe Category, Entry

  def after_save record
    expire_action(:controller => "api/sync", :action => "all")
  end
end ```
assistant