Recommend this page to a friend! |
Download .zip |
Info | View files (11) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2007-03-28 (9 years ago) | 69% | Total: 3,481 | All time: 943 This week: 936 |
Version | License | PHP version | Categories | |||
cache 1.0 | Custom (specified... | 4.2 | Cache, Templates |
Description | Author | |
This class can be used to cache the output of PHP scripts in files. |
Cache - cache php output and objects This class can cache php text output and objects to files. Constructor for cache blocks is very simple and it requires only one "where" loop (see examples for details). You can also nest multiple blocks, with different expiration times. Cache class also includes easy to use Smarty plugin. Basic PHP syntax: while($cache->save("cache.sample.tmp",60)) { echo("put some code here!"); } Basic Smarty syntax: {cache file="cache.sample.tmp" time="60"} put some code here! {/cache} Dragan Bosnjak http://wreza.bloger.hr |
Files |
File | Role | Description | ||
---|---|---|---|---|
smarty (2 files) | ||||
cache.php | Class | Main file | ||
test_01_hello_world.php | Example | Hello World | ||
test_02_nested.php | Example | Example of nested blocks | ||
test_03_objects.php | Example | Caching objects | ||
test_04_quotes.php | Example | Test of serialization with special characters | ||
test_05_benchmark.php | Example | Benchmark example | ||
test_06_smarty.php | Example | Smarty plugin example | ||
license.txt | Lic. | License file | ||
readme.txt | Doc. | Read me |
Files | / | smarty |
File | Role | Description |
---|---|---|
block.cache.php | Aux. | Smarty plugin |
test_06_smarty.tpl | Data | Templage for smarty plugin example |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.