PHPackages                             otgs/remote-files-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. otgs/remote-files-cache

ActiveLibrary[Caching](/categories/caching)

otgs/remote-files-cache
=======================

A WP library for caching remote files

088PHP

Since Feb 6Pushed 7y ago13 watchersCompare

[ Source](https://github.com/OnTheGoSystems/remote-files-cache)[ Packagist](https://packagist.org/packages/otgs/remote-files-cache)[ RSS](/packages/otgs-remote-files-cache/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Remote Files Cache
==================

[](#remote-files-cache)

A 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.

Installation
------------

[](#installation)

```
composer require otgs/remote-files-cache

```

Usage
-----

[](#usage)

Checking if the cached file is up to date:

```
$remote_file_cache = new OTGS_Remote_File_Cache( 'http://my-awesome.url' );

if ( $remote_file_cache->is_up_to_date() ) {
    //do not do the remote request
}
```

Updating cache:

```
$remote_file_cache = new OTGS_Remote_File_Cache( 'http://my-awesome.url' );

//Do your stuff: request the file, etc.

$remote_file_cache->update();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b2504f162bfb82c278563083bbc6e1ebe23f79e41099096a17e6879f3f7183a?d=identicon)[andreasciamanna](/maintainers/andreasciamanna)

![](https://www.gravatar.com/avatar/38f6b9ea4ac5094cb4d6a7eda9e3acd33ae87f5a89977def2957d5c9d31a6722?d=identicon)[otgs-libraries](/maintainers/otgs-libraries)

![](https://avatars.githubusercontent.com/u/4672632?v=4)[Adriano Ferreira](/maintainers/adrianosferreira)[@adrianosferreira](https://github.com/adrianosferreira)

---

Top Contributors

[![andreasciamanna](https://avatars.githubusercontent.com/u/181780?v=4)](https://github.com/andreasciamanna "andreasciamanna (6 commits)")[![adrianosferreira](https://avatars.githubusercontent.com/u/4672632?v=4)](https://github.com/adrianosferreira "adrianosferreira (2 commits)")

### Embed Badge

![Health badge](/badges/otgs-remote-files-cache/health.svg)

```
[![Health](https://phpackages.com/badges/otgs-remote-files-cache/health.svg)](https://phpackages.com/packages/otgs-remote-files-cache)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
