Ticket #358 (closed defect: fixed)
Optimize page caching ($pageCache doesn't work well)
| Reported by: | hiRainChen@… | Owned by: | DotMG |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.1 |
| Component: | core | Version: | |
| Severity: | normal | Keywords: | pageCache, optimization, cache |
| Cc: |
Description (last modified by DotMG) (diff)
how to show out the bug: set the config "sql_debugging" to 1,then at the bottom you will find such as:
... select * from wikka_pages where tag = 'HomePage' and latest = 'Y' limit 1 (0.0024969577789307) select * from wikka_pages where tag = 'HomePage' and latest = 'Y' limit 1 (0.0021030902862549) ...
the $pageCache doesn't work.
bug reason: 'HomePage' in the database is low case as 'homepage';
how to fix:
/lib/Wakka.class.php in the function : function LoadPage
find below code: $this->pageCache[$pagetag?] = $page;
should be : $this->pageCache[$tag] = $page;
Change History
Note: See
TracTickets for help on using
tickets.