PHP Classes

Super Simple Cache: Cache the contents of remote Web pages

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 242 All time: 8,004 This week: 160Up
Version License PHP version Categories
supersimplecache 1.0GNU General Publi...5PHP 5, Files and Folders, Cache
Description 

Author

This class can cache the contents of remote Web pages.

It can check if a local cache for a given page URL exists.

If it exists and it was not created more than a cache maximum age period, the class returns the current cached data.

If the cache file does not exist or it has expired, the class retrieves the page from the given URL and stores its contents in the local cache file before returning the contents string.

Picture of Silvio
  Performance   Level  
Name: Silvio <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: ???
All time rank: 3279250 in Brazil Brazil
Week rank: 312 Up26 in Brazil Brazil Up

Example

<?php

include('SuperSimpleCache.php');

$ssc = new SuperSimpleCache('/home/user/www/data/', 15);

echo
$ssc->get('https://www.phpclasses.org');


  Files folder image Files  
File Role Description
Plain text file cache-test.php Example Using example
Plain text file SuperSimpleCache.php Doc. Main file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:242
This week:0
All time:8,004
This week:160Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:305