{"id":19401375,"url":"https://github.com/onthegosystems/remote-files-cache","last_synced_at":"2026-05-18T14:10:30.409Z","repository":{"id":56341749,"uuid":"169392720","full_name":"OnTheGoSystems/remote-files-cache","owner":"OnTheGoSystems","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-27T14:53:27.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-01-07T12:12:56.419Z","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/OnTheGoSystems.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":"2019-02-06T11:01:35.000Z","updated_at":"2019-02-06T16:48:13.000Z","dependencies_parsed_at":"2022-08-15T17:00:27.162Z","dependency_job_id":null,"html_url":"https://github.com/OnTheGoSystems/remote-files-cache","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/OnTheGoSystems%2Fremote-files-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fremote-files-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fremote-files-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fremote-files-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OnTheGoSystems","download_url":"https://codeload.github.com/OnTheGoSystems/remote-files-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240576485,"owners_count":19823293,"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-10T11:18:15.918Z","updated_at":"2026-05-18T14:10:30.353Z","avatar_url":"https://github.com/OnTheGoSystems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote Files Cache\n\nA WP library for caching remote files. It caches the hash of the remote file in WP options table, avoiding multiple remote requests on the same file if the local file is up to date, saving bandwidth. It is done through a tiny HEAD request.\n\n## Installation\n\n```\ncomposer require otgs/remote-files-cache\n```\n\n## Usage\n\nChecking if the cached file is up to date:\n\n```php\n$remote_file_cache = new OTGS_Remote_File_Cache( 'http://my-awesome.url' );\n\nif ( $remote_file_cache-\u003eis_up_to_date() ) {\n    //do not do the remote request\n}\n```\n\nUpdating cache:\n\n```php\n$remote_file_cache = new OTGS_Remote_File_Cache( 'http://my-awesome.url' );\n\n//Do your stuff: request the file, etc.\n\n$remote_file_cache-\u003eupdate();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonthegosystems%2Fremote-files-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonthegosystems%2Fremote-files-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonthegosystems%2Fremote-files-cache/lists"}