Close

Themehits

Download AutoCache Nulled

 


Introduction

AutoCache is what the name implies: automatic cache.

Regardless of the web application you’re using, AutoCache should be able to speed it up. It will sit between PHP and your PHP web application and watch what data passes by, so that if there is a duplicate request in the future (within a set timeframe), then instead of letting the app run its course again, we’ll serve a saved/cached response instead. This means less database queries and less processing per request (as pulling an object from cache usually takes < 1ms).

Implementation

To implement AutoCache, all you need to do is add a few lines of code to the top (or near the top) of your script. The positioning is irrelevant as long as nothing is shown to the client and no HTTP headers are sent before you call AutoCache::Push() or AutoCache::PullOrPush().

Examples

<?php
require 'auto-cache.php';
AutoCache::Hash($_SERVER['REQUEST_URI']);
AutoCache::PullOrPush(5);

The above script will make any requests with the same URI to be considered the same object. The object will stay cached for a maximum of 5 seconds (that’s the TTL—time to live). Any other requests within 5 seconds of another request of the same URI will be served from cache.

If your content differs per IP address or cookie, simply use something like this:

<?php
require 'auto-cache.php';
AutoCache::Hash($_SERVER['REQUEST_URI']);
// Don't serve the same content for different IP addresses.
AutoCache::Hash($_SERVER['REMOTE_ADDR']);
AutoCache::PullOrPush(5);

Or…

<?php
require 'auto-cache.php';
AutoCache::Hash($_SERVER['REQUEST_URI']);
// Different "username" cookie, different object.
AutoCache::Hash($_COOKIE['username']);
AutoCache::PullOrPush(5);

[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]

Demo = AutoCache
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/autocache/1734137″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]

Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy AutoCache from the The Developer ( Savetheinternet ) website. Thank you.
Download = AutoCache-[Updated].zip



Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.