{"id":26733436,"url":"https://github.com/amcaplan/cache_clear","last_synced_at":"2025-03-28T01:49:26.490Z","repository":{"id":65603895,"uuid":"39144398","full_name":"amcaplan/cache_clear","owner":"amcaplan","description":"Easily set up a cache-clearing endpoint for your Rails app.","archived":false,"fork":false,"pushed_at":"2015-10-12T11:43:46.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T02:17:49.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amcaplan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-15T15:22:16.000Z","updated_at":"2015-07-15T15:22:33.000Z","dependencies_parsed_at":"2023-01-31T11:30:43.173Z","dependency_job_id":null,"html_url":"https://github.com/amcaplan/cache_clear","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amcaplan%2Fcache_clear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amcaplan%2Fcache_clear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amcaplan%2Fcache_clear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amcaplan%2Fcache_clear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amcaplan","download_url":"https://codeload.github.com/amcaplan/cache_clear/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245954823,"owners_count":20699875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-28T01:49:25.947Z","updated_at":"2025-03-28T01:49:26.479Z","avatar_url":"https://github.com/amcaplan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CacheClear\n\n[![Gem Version](https://badge.fury.io/rb/cache_clear.svg)](https://badge.fury.io/rb/cache_clear)\n[![Travis Status](https://travis-ci.org/amcaplan/cache_clear.svg)](https://travis-ci.org/amcaplan/cache_clear.svg)\n\n`CacheClear` is a simple pre-built solution for adding a cache-clearing endpoint\nto your Rails app.\n\nJust send a `DELETE` request to `/cache_clear` and the Rails cache will be\ncleared. No need to enter the Rails console!\n\nYou can (and should!) configure `CacheClear` to use an authorization token, to\nmake sure no evil would-be DDoSers crash your app by continuously emptying the\ncaches.\n\n`CacheClear` is great as a way for scripts (e.g. hubot) to clear caches remotely\nwithout needing to directly touch your production servers.\n\n## How to include CacheClear in your project\n\n1) Add it to your gemfile:\n\n``` ruby\ngem 'cache_clear'\n```\n\n2) Mount it in `config/routes.rb`:\n\n``` ruby\nYourApp::Application.routes.draw do\n  mount CacheClear::Engine =\u003e \"/cache_clear\" # or a route of your choosing\n  # the rest of your file\nend\n```\n\n3) Optional but strongly recommended: Set up authentication in an initializer\n(e.g., `config/initializers/cache_clear.rb`):\n``` ruby\nCacheClear.configure do |config|\n  config.auth_token = \"super_secure_string\"\nend\n```\n\n...and you're good to go!\n\n## License\n\nThis project uses the MIT-LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famcaplan%2Fcache_clear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famcaplan%2Fcache_clear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famcaplan%2Fcache_clear/lists"}