plugin:smartcache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:smartcache [2011-08-10 02:01] – [Installation] 88.169.18.60 | plugin:smartcache [2019-01-09 22:46] (current) – Another try LarsDW223 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Smartcache Plugin ====== | ====== Smartcache Plugin ====== | ||
- | ---- pluginnews ---- | ||
- | headline: Plugins by same author | ||
- | style: sameauthor | ||
- | ---- | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : simon.shlomo@poil.dk | email : simon.shlomo@poil.dk | ||
type : Action | type : Action | ||
- | lastupdate : 2011-08-01 | + | lastupdate : 2011-10-10 |
compatible : 2011-05-25 | compatible : 2011-05-25 | ||
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : ajax, cache | + | tags : ajax, cache, javascript |
- | downloadurl: | + | downloadurl: |
- | bugtracker : # eg. http://github.com//dokuwiki-plugin-smartcache/issues | + | bugtracker : http://sourceforge.net/p/ |
sourcerepo : http:// | sourcerepo : http:// | ||
donationurl: | donationurl: | ||
Line 25: | Line 21: | ||
This plugin enable the browser cache for users that are not logged in. The cache is automatically refreshed (and checked) using an AJAX call to the server. If the user log in, the plugin also refresh the browser cache. | This plugin enable the browser cache for users that are not logged in. The cache is automatically refreshed (and checked) using an AJAX call to the server. If the user log in, the plugin also refresh the browser cache. | ||
+ | You can see an example on how this plugin works here: [[http:// | ||
- | ===== Installation ===== | + | If you want to improve this plugin I would be very happy to add you as developer with read/write access on sourceforge. Please, contact me with your suggestions and comments. |
- | Install | + | ===== Installation ===== |
+ | Search and install | ||
For some strange reason (anybody?), it is not possible to change the cache-headers using the event system. To get this plugin in to work you need to edit inc/ | For some strange reason (anybody?), it is not possible to change the cache-headers using the event system. To get this plugin in to work you need to edit inc/ | ||
insert: | insert: | ||
+ | |||
< | < | ||
if(!isset( $_SERVER[' | if(!isset( $_SERVER[' | ||
header(' | header(' | ||
- | header(' | + | header(' |
- | + | </ | |
To speed up the AJAX code; you need to hardcode the ' | To speed up the AJAX code; you need to hardcode the ' | ||
Line 42: | Line 41: | ||
print date (" | print date (" | ||
</ | </ | ||
- | |||
- | |||
=== Change Log === | === Change Log === | ||
- | |||
- | // | ||
* **2011-08-01** | * **2011-08-01** | ||
* Initial release | * Initial release | ||
+ | * **2011-10-10** | ||
+ | * Fixed an issue that gave warning during searches | ||
+ | ===== Known bugs ===== | ||
- | ===== Discussion ===== | + | Sometimes (after changing any preferences in administration panel or other), the screen can reload indefinitly and the page never appear. To solve it : |
+ | * disable smartcache ; e. g. : touch lib/ | ||
+ | * empty cache ; e. g. : rm data/ | ||
+ | * clear the cache in your browser (or all browsers) | ||
+ | * enable smartcache ; e. g. : rm lib/ | ||
- | //Could be placed on an external page (e.g. plugin: | + | Examples are unix commands, adapt them to your OS. |
+ | ===== Removal ===== | ||
+ | To uninstall smartcache plugin : | ||
+ | * erase or disable smartcache plugin | ||
+ | * delete or comment added lines in inc/ | ||
+ | * erase cache in data/cache (important) | ||
+ | * eventually, erase cache of your browser | ||
+ | |||
+ | ===== Discussion ===== | ||
plugin/smartcache.1312934461.txt.gz · Last modified: 2011-08-10 02:01 by 88.169.18.60