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