DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:smartcache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:smartcache [2012-09-07 22:41] – remove same author pluginnews block 82.136.210.17plugin:smartcache [2019-01-09 22:46] (current) – Another try LarsDW223
Line 1: Line 1:
 ====== Smartcache Plugin ====== ====== Smartcache Plugin ======
- 
  
 ---- plugin ---- ---- plugin ----
-description: Improve Dokuwiki speed by smart usage of the browser cache+description: Improve DokuWiki speed by smart usage of the browser cache
 author     : Simon-Shlomo Poil author     : Simon-Shlomo Poil
 email      : simon.shlomo@poil.dk email      : simon.shlomo@poil.dk
Line 14: Line 13:
 tags       : ajax, cache, javascript tags       : ajax, cache, javascript
  
-downloadurl: http://sourceforge.net/projects/dokusmartcache/files/smartcache.zip/download +downloadurl: https://sourceforge.net/projects/dokusmartcache/files/latest/download 
-bugtracker : # eg. http://github.com//dokuwiki-plugin-smartcache/issues+bugtracker : http://sourceforge.net/p/dokusmartcache/tickets/
 sourcerepo : http://sourceforge.net/p/dokusmartcache/code sourcerepo : http://sourceforge.net/p/dokusmartcache/code
 donationurl: donationurl:
Line 23: Line 22:
  
 You can see an example on how this plugin works here: [[http://www.youtube.com/watch?v=Ad2rO9vDoBk]] You can see an example on how this plugin works here: [[http://www.youtube.com/watch?v=Ad2rO9vDoBk]]
- 
  
 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. 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.
- 
  
 ===== Installation ===== ===== Installation =====
- +Search and install the plugin using the [[plugin:extension|Extension Manager]] or manually with the download from the [[http://sourceforge.net/projects/dokusmartcache/files/smartcache.zip/download|SourceForge Mirror]]. Refer to [[:Plugins]] on how to install plugins manually. 
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+
  
 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/actions.php: After the line : foreach ($headers as $hdr) header($hdr);  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/actions.php: After the line : foreach ($headers as $hdr) header($hdr); 
 insert: insert:
 +
 <code> <code>
 if(!isset( $_SERVER['REMOTE_USER'])){ if(!isset( $_SERVER['REMOTE_USER'])){
 header('Cache-Control: public, max-age='.max($conf['cachetime'], 2000000));                           header('Cache-Control: public, max-age='.max($conf['cachetime'], 2000000));                          
-header('Pragma: cache'); } </code> +header('Pragma: cache'); } 
- +</code>
  
 To speed up the AJAX code; you need to hardcode the 'datadir' path in the ajax.php script from the plugin folder. E.g., if your 'datadir' is '/var/www/data/pages/', you need to write:  To speed up the AJAX code; you need to hardcode the 'datadir' path in the ajax.php script from the plugin folder. E.g., if your 'datadir' is '/var/www/data/pages/', you need to write: 
Line 46: Line 43:
  
 === Change Log === === Change Log ===
- 
-//[preferable GitHub RSS feed or similar]// 
  
   * **2011-08-01**   * **2011-08-01**
Line 63: Line 58:
  
 Examples are unix commands, adapt them to your OS. Examples are unix commands, adapt them to your OS.
 +
 ===== Removal ===== ===== Removal =====
  
Line 70: Line 66:
   * erase cache in data/cache (important)   * erase cache in data/cache (important)
   * eventually, erase cache of your browser   * eventually, erase cache of your browser
 +
 ===== Discussion ===== ===== Discussion =====
- 
-//Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs// 
- 
- 
  
plugin/smartcache.1347050518.txt.gz · Last modified: 2012-09-07 22:41 by 82.136.210.17

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki