Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.070.135 Times

WP Plugin Cache 1.2

  Date Added: August 05, 2013  |  Visits: 738

WP Plugin Cache

Report Broken Link
Printer Friendly Version


Product Homepage
Download (50 downloads)



WP Plugin Cache was designed to provide developers with an easy to use cache system that they could integrate into their plugins. Now, even the smallest and simplest plugin can use a caching system!If you're not a developer, you may be asked to install this plugin to add caching features to a plugin. Having a seperate caching facility ensures efficient use of code and, ultimately, improved performance.However, performance improvements are always down to how any developer implements this plugin - hints and tips are provided throughout the instructions.Unless you're a developer, wishing to use this plugin to compliment one of your own, there's no need to read any further. If you are, read on!For help with this plugin, or simply to comment or get in touch, please read the appropriate section in "Other Notes" for details. This plugin, and all support, is supplied for free, but donations are always welcome.IntroductionWhen activated, the plugin creates a folder in your wp-contents/uploads directory named plugin_cache. This will store any cached files.The main functions to be aware of are plugin_cache_read and plugin_cache_update. The read and updating functions are seperate to allow for the files to be "stripped down" before being saved, allowing for improved performance. However, if changes are not necessary then the plugin_cache_read function can perform the entire caching procedure by itself.plugin_cache_readThe function plugin_cache_read has 4 parameters...file key : This is a unique key to identify the cached file. Often, just the filename would be sufficient, but if you need to differentiate between different versions of the same filename (e.g. a news feed which may contain different numbers of entries) then extra data can be added.filename : This is the filename of the file that you wish to read if a cache doesn't exist. This is optional - if no cache is found and a filename hasn't been specified, then nothing will be returned by the function. This allows you to fetch the file yourself.timeout : This is the number of hours after which you wish the cache to be updated. Specifying this causes the function to also perform the same processing as plugin_cache_update.prefix : This is an optional parameter and allows you to specify a prefix that will be added to the cache filename. This is useful is plugins wish to identify their cached files with a unique prefix - the plugin can then, additionally, provide the option to delete its own cache files.So, specifying a filename but NOT a timeout will cause the file to be fetched - either from cache or not. Specifying a timeout and a filename will mean that the file will be fetched and then updated in the cache.The function will return an array containing the following data...cache_update : Does the cache need updating? This is relevant if you are using the plugin_cache_update function, as you can use it to determine whether you need to call it or not. It contains either Y or blank.data : This is the returned file contents. If it was not fetched from cache and you did not specify a filename, then this will be blank.An example of usage would be...$return=plugin_cache_read("test","http://www.artiss.co.uk/feed",3,"test");This would fetch the feed from my site, updating the cache and giving it a timeout of 3 hours. The cache file would begin with the prefix "test_".plugin_cache_updateThe function plugin_cache_update has 4 parameters... file key, file contents, timeout and prefix.Only the last parameter is optional and all except the second are the same as with plugin_cache_read. The second parameter is the file contents rather than the filename itself.An example would be...$return=plugin_cache_update("test",$data,3);This would update the cache with the contents of $data for 3 hours. Install : 1. Upload the entire wp-plugin-cache folder to your wp-content/plugins/ directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. That's it - there's no admin screen!

Requirements: No special requirements
Platforms: PHP
Keyword: Exist Fetch Found Hasn Hours Number Optional Parameter Plugin Cache Updateprefix Processing Returned Updated Yourselftimeout
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


WP PLUGIN CACHE RELATED
Modules  -  GTalk Status to WordPress 0.12
This plugin will automatically show your GTalk status on your WordPress blog. You can set a max-shown number and the cache interval to make it works more smoothly.FYI:The principle of this plugin is to refine your GTalk badge page, which is the...
10 KB  
Utilities  -  Command Not Found 0.2.41
Command Not Found is a program that uses a cache of existing programs and their associated packages to aid users in their day-to-day command-line work. Usage: command-not-found [options] Options: ...
30.72 KB  
Networking  -  YD Spread Parameter 0.2.0
Spread your http get parameters on all your links!This plugin will automatically take care of "spreading" a parameter on all the links URL inside a WP or WP MU blog. It will add the given parameter at the end of any link URL inside the site.It...
10 KB  
Network & Internet  -  klish 1.5.3
The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files. The KLISH stands for Kommand Line Interface Shell. I know that "command" starts with "c" :) . The klish is a fork of clish...
604.16 KB  
Libraries  -  Statistics::Gap 0.10
Statistics::Gap Perl module is an adaptation of the Gap Statistic. SYNOPSIS use Statistics::Gap; $predictedk = &gap("prefix", "vec", INPUTMATRIX, "rbr", "h2", 30, 10, rep, 90, 4); OR use Statistics::Gap; $predictedk = &gap("prefix",...
2.5 MB  
Programming  -  libstldb4 0.5.1
libstldb4 library is a C++ wrapper for sleepycat db4 database. It uses the STL in the API where sensible, allows standard IOStreams for data access where sensible, e.g. getting the value of a key should be able to use an istream...
4.29 MB  
Libraries  -  Getargs::Long 1.1001
Getargs::Long is a Perl module with named subroutine arguments, with optional type checking. SYNOPSIS use Getargs::Long; # case sensitive use Getargs::Long qw(ignorecase); # case insensitive # Simple, args mandatory my ($val, $other) =...
40.96 KB  
Development Tools  -  Acc Statistics - True statistics - website statistics program 1.1
Acc Statistics is a website statistics program. Acc Statistics tells you everything you want to know about how your visitors found you and number of visits and number of unique visitors of your website.AccStatistics tells you everything about:-...
2.92 MB  
Networking  -  List of participants 2.2
Stellt eine Teilnehmerliste zur Verfuegung in der sich Besucher eintragen koennen. Die Liste ist Zeitlich und in der Anzahl der Teilnehmer eingrenzbar. Weiter Parameter stehen zur Verfuegung.Creates a participants list in which guests can log...
10 KB  
Networking  -  Post Revision Display 0.8.1
Want a way to show an "audit trail" for blog posts? Possible uses: * For web publishers, to allow the freedom of updating stories without worrying about confusing or deceiving readers. Anyone can see the changes. * For academic/student use of...
102.4 KB  
NEW DOWNLOADS IN SCRIPTS, MODULES
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Modules  -  TinyMCE Node Picker 6.x-2.1
This module will de discontinued and replaced with Node Picker as soon as a stable release is available.TinyMCE Node Picker provides a button in TinyMCE that displays a list of links to content. Choosing a link inserts it into the editor.The...
20.48 KB  
Modules  -  Fapilicious 5.x-1.x-de
Fapilicious is a collection of FormAPI goodies.I hope to make it a repository of reusable FormAPI trickery and short cuts. Currently it has small collection of powerful FormAPI element validators.Please submit your favorite tricks as patches so we...
10 KB  
Modules  -  Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target...
20.48 KB  
Modules  -  Plica Twitter 1.0.1
Plica TwitterInstallation : * Download, unzip, and install plugin dir in /wp-content/plugins * Activate * All right now
10 KB  
Modules  -  Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead...
10 KB