{"id":21700132,"url":"https://github.com/wp-digital/wp-flush-cache","last_synced_at":"2025-04-12T13:34:02.043Z","repository":{"id":56991745,"uuid":"59742088","full_name":"wp-digital/wp-flush-cache","owner":"wp-digital","description":"WordPress plugin for flushing cache","archived":false,"fork":false,"pushed_at":"2020-12-30T15:43:36.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-05T01:32:52.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-digital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-26T10:37:15.000Z","updated_at":"2023-07-23T15:14:20.000Z","dependencies_parsed_at":"2022-08-21T12:20:53.851Z","dependency_job_id":null,"html_url":"https://github.com/wp-digital/wp-flush-cache","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-flush-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-flush-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-flush-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-flush-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-digital","download_url":"https://codeload.github.com/wp-digital/wp-flush-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248573416,"owners_count":21126825,"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":"2024-11-25T20:12:59.147Z","updated_at":"2025-04-12T13:34:01.997Z","avatar_url":"https://github.com/wp-digital.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flush Cache Buttons\n\n### Description\n\nHelps to flush different types of cache.\n\n### Install\n\n- Preferable way is to use [Composer](https://getcomposer.org/):\n\n    ````\n    composer require innocode-digital/wp-flush-cache\n    ````\n\n  By default, it will be installed as [Must Use Plugin](https://codex.wordpress.org/Must_Use_Plugins).\n  It's possible to control with `extra.installer-paths` in `composer.json`.\n\n- Alternate way is to clone this repo to `wp-content/mu-plugins/` or `wp-content/plugins/`:\n\n    ````\n    cd wp-content/plugins/\n    git clone git@github.com:innocode-digital/wp-flush-cache.git\n    cd wp-flush-cache/\n    composer install\n    ````\n\nIf plugin was installed as regular plugin then activate **Flush Cache Buttons** from Plugins page\nor [WP-CLI](https://make.wordpress.org/cli/handbook/): `wp plugin activate wp-flush-cache`.\n\n### Usage\n\nFrom the box this plugin adds possibility to flush object cache in case when site uses\n[Persistent Caching](https://developer.wordpress.org/reference/classes/wp_object_cache/#persistent-caching),\nif not, then [Transients](https://developer.wordpress.org/apis/handbook/transients/).\n\n#### Notes\n\nIn [Network](https://wordpress.org/support/article/create-a-network/) global caches could be flushed from\nnetwork admin area and individual from each site admin area. Also, it's possible to flush individual cache\nfrom sites list in network admin area.\n\n### Documentation\n\nAdds flush button with a callback to site admin area: `/wp-admin/tools.php?page=innocode_cache-control`\n(**Tools** -\u003e **Cache**).\n\n```\nflush_cache_add_button( string $title, callable $callback, string $description = '' );\n```\n\n---\n\nAdds flush button with a callback to network admin area: `/wp-admin/network/admin.php?page=innocode_cache-control`.\n\n```\nflush_cache_add_network_button( string $title, callable $callback, string $description = '' );\n```\n\n---\n\nAdds action link with a callback to network admin area to the sites list: `/wp-admin/network/sites.php`.\n\n```\nflush_cache_add_sites_action_link( string $title, callable $callback, string $description = '' );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-flush-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-digital%2Fwp-flush-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-flush-cache/lists"}