Difference between revisions for Users / Eo Ny / dev
| Version1 | Version2 | Differences |
|---|---|---|
| 112 | 112 | |
| 113 | 113 | ---- |
| 114 | 114 | |
| 115 |
===== |
|
| 115 | =====##store_cache(): void##===== | |
| 116 | 116 | Saves the generated page content to cache file. |
| 117 | 117 | |
| 118 | 118 | **Features:** |
| … | … | … |
| 122 | 122 | - Only executes if caching flag is set and user is anonymous |
| 123 | 123 | |
| 124 | 124 | **Example:** |
| 125 |
%% |
|
| 125 | %%(hl php) | |
| 126 | 126 | // Called at end of page rendering |
| 127 | 127 | $http->store_cache(); |
| 128 | 128 | %% |
| … | … | … |
| 573 | 573 | |
| 574 | 574 | === Workflow Examples === |
| 575 | 575 | |
| 576 |
==== |
|
| 577 |
|
|
| 578 |
%% |
|
| 576 | ====Example 1: Handling a GET Request==== | |
| 577 | ||
| 578 | %%(hl php) | |
| 579 | 579 | // In main wiki entry point |
| 580 | 580 | $http = new Http($db); |
| 581 | 581 | $http->session(0); // Start session |