{"id":19268650,"url":"https://github.com/moolen/appcache","last_synced_at":"2026-02-27T23:05:11.876Z","repository":{"id":5553468,"uuid":"6757882","full_name":"moolen/appcache","owner":"moolen","description":"Appcache Plugin (Wordpress)","archived":false,"fork":false,"pushed_at":"2012-11-19T10:29:29.000Z","size":140,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T12:41:57.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/moolen.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":"2012-11-19T09:36:23.000Z","updated_at":"2017-02-23T11:46:03.000Z","dependencies_parsed_at":"2022-07-07T01:03:16.384Z","dependency_job_id":null,"html_url":"https://github.com/moolen/appcache","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/moolen%2Fappcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fappcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fappcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fappcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moolen","download_url":"https://codeload.github.com/moolen/appcache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240371742,"owners_count":19790888,"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-09T20:16:57.521Z","updated_at":"2026-02-27T23:05:06.835Z","avatar_url":"https://github.com/moolen.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"application-cache-plugin\n========\n\nAppcache Plugin (Wordpress)\nThis plugin creates a dynamic appcache manifest.\n\n#Installation\n\nInstallation: \nmove the appcache folder into www.your-url.com/wp-content/plugins/\nadd to your themes' header.php the appcache manifest:\n\u003c\\html manifest=\"\u003c\\?php echo site_url(); ?\u003e/wp-content/plugins/appcache/manifest.appcache.php?appcache_id=\u003c\\?php echo the_ID().\"\u0026referrer=\".urlencode($_SERVER['SCRIPT_URL']); ?\u003e\"\u003e\n..and remove the backslashes obviously.\n\nThe file itselfs gets 2 GET parameters: \n1: ID of the post\n2: referrer (which site or post is sending the request it?)\n\nThe file creates a appcache manifest based upon the parameters. \nExample: ID is 354 and referrer is '/my-sub-page' .\n\n1. It gets the id-hash from database (outputs: \"# version: \u003csomehash\u003e\" OR  if not set \"# version: 1.0\")\n2. parse wp_postmeta for image tags (where post_id = 354)\n3. parse wp_posts for image tags (where post_id= 354)\n4. Parse widgets for img tags\n5. PARSE wp_postmeta for customfields (if option is enabled)\n6. parse frontpage posts for image tags (only if referrer = / )\n7. Cache Themedirectory\n8. Cache other directories\n\nOn the save_post event a md5-hash of the current timestamp will be written into the database (specified by ID).\nSo the appcache manifest gets updated IF there is a new version of a post (see point 1).\n\nIn addition it will cache the whole /wp-content/themes/current-theme/ directory (except .php, .sass, .less ...)\nYou can also cache a custom folder in the settings panel.\n\nfurthermore this appcache plugin supports the AdvancedCustomFields plugin (www.advancedcustomfields.com)\nwatch the plugin in action: www.skankshot.de (in Chrome: open dev-tools CMD+ALT+J, go to Console-Tab; this is where you can see the appcache-events)\n\nThe Repository of the Appcache: \nhttps://github.com/moolen/appcache","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoolen%2Fappcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoolen%2Fappcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoolen%2Fappcache/lists"}