Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

3S Caching System (Cache API results and PHP data)

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

3S Caching System (Cache API results and PHP data) - CodeCanyon Item for Sale


Ad: Bluehost hosting

This caching system has been built to be able to cache API requests (coming from Facebook, Twitter, YouTube etc, that often returns json results or XML results). It can also be used to cache PHP data (like big SQL results, arrays, json, etc).

The 3S stands for 3 storage. This item can use 3 types of different storages: SQLite, file system and MySQL.


- Caching API results (YouTube, Facebook, Twitter)
- Can cache XMLs, json, PHP arrays, variables and even HTML.
- 3 types of storages: SQLite, Files or MySQL.
- No configuration if used with the file system or SQLite.
- Configuration in less than 2 minutes if used with MySQL.
- Define for how long a data should be cached.
- Extremely easy to use in your existing website.


- Speed up your website by caching strategic data.
- Avoid being rejected by API providers by limiting requests.

Use example

Cache a data for 120 seconds:
$c1 = new Yp_cache();
$c1->cache_set(array(‘key’=>‘123’, ‘data’=>$data, ‘expire’=>‘120’));

Get a cached data:
$data = $c1->cache_get(array(‘key’=>‘123’));

Delete a cached data:

Delete all cached data:

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


9 June 11

Last Update:

Compatible Browsers:
IE6, IE7, IE8, IE9, Firefox, Safari, Opera, Chrome 4, Chrome 5

Files Included:

Software Version:
PHP 5.x, PHP 5.0 - 5.2, PHP 5.3


eCommerce, All Items, caching API calls, caching class, caching data, caching solution, caching system