PHP Metameric Cache

PHP Metameric Cache

[ad_1]

To get this product on 50 p.c contact me on this link

 

LIVE PREVIEWBUY FOR $11

UPDATED PHP Metameric Cache is a disk based mostly cache mechanism that allows you to create cache for chosen elements of PHP web page or PHP web site shortly and simply. It doesn’t depend upon URL construction of your web site. You can retailer every cached half with a singular title after which retrieve it or delete it on requirement.

This cache will create segmented cache on your internet software for these elements that require heavy server processing. Use this to hurry up your web site, enhance efficiency and loading time.

You must place two strains of code at place to begin (the place you need to begin caching) and one line of code at ending level (the place you need to finish cache). Same code applies for as many sections as you need to cache. Only the title variable ‘worth’ of cached file will likely be modified for every half (solely as soon as). Cache for a piece of code, will likely be saved with its distinctive title that you just specify.

If cache for any part of code has expired, on new cache creation for that part, it is going to be overwritten. You can delete the cache manually and selectively however usually you do not want it. You can delete all cache anytime.

This system is for many who don’t need to cache entire pages. Select your code to cache, title it and put it below cache and overlook it.

Benefit

Recently, I made a dynamic PHP software that had a navigational menu. Elements in menu may show on header, footer, sidebar on admin based mostly choice. The menu had a pleasant CSS for its kinds. I carried out large PHP checks on that menu to manage placements and kinds of the menu parts. Actually in the long run I noticed that these checks on-page-load each time, may decelerate software. I wanted some form of caching to cache solely that navigation after which few extra sections of each web page. This cache can remedy such issues.

Features

  • NEW: Set totally different expiry time for any or every cached consequence.
  • Create cache for particular elements of webpage or create full webpage cache.
  • Easy to combine in and configure with any web site
  • Lightweight script
  • Only connects to the database or undergo PHP scripts when cache has expired or cache web page doesn’t exist
  • Set cache time simply
  • Delete chosen half (file) from cache or all cache information
  • Reduce server load, processing, assets consumption and enhance web site loading pace making it responsive
  • Reduce database queries requests

This script is for many who don’t like ‘full web page caching’ or ‘full web site caching’. Exclude login or person areas utterly from caching. Take chosen elements, from web site or from PHP web page – outline their names and cahce these elements individually. This cache will get output from these elements and retailer them with their distinctive names in cache folder. Next time when the web page masses, if these segments are saved in cache, will likely be displayed from cache and their actual PHP code that generated these elements is not going to be executed. Real PHP code execution together with database requests will likely be skipped and its already saved output will likely be displayed.

You can cache as many elements of a web page or a web site as you want. This offers you full management over your web site content material. You can resolve from the place, what and the way a lot to cache. Its easy and simple to make use of.

Implementation / Usage

cachePARTname
begin cache
Code or Content no 1
finish cache

cachePARTname
begin cache
Code or Content no 2
finish cache

ans so on..


<?php $filename="desired-cache-file-name";
embody("start-cache.php");
if($cached!='sure') { ?>

knowledge or code to cache...

<?php } embody("end-cache.php"); ?>

This will create a cache file named as ‘cache_desired-cache-file-name’ and retailer the information “data or code to cache…” in it.

Repeat this step to cache extra knowledge on similar web page or totally different pages.

Change Log

– 28 March 2013

  • Added customized ‘cache time validity’ possibility. You can set totally different expiry time for every cached part of your web site. At the identical web page, totally different sections can have totally different expiry time for his or her cache.
  • Bug repair – After deleting single cached consequence, it was not being cached once more – FIXED
  • Updated reside demo, up to date code, up to date code hints, up to date documentation.

If you need to create cache for full webpages, verify ‘Simple PHP Cache’.

[ad_2]

To get this product on 50 p.c contact me on this link

 

Source

Pomento
Logo
Register New Account
Compare items
  • Total (0)
Compare
0
Shopping cart