]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
doc: troubleshooting: add procedure to clear shaarli caches
authornodiscc <nodiscc@gmail.com>
Sat, 15 Aug 2020 17:40:59 +0000 (19:40 +0200)
committernodiscc <nodiscc@gmail.com>
Sat, 12 Sep 2020 12:31:45 +0000 (14:31 +0200)
doc/md/Server-configuration.md
doc/md/Troubleshooting.md

index 2ee15ef69ea944fed1415f5210f64384a6ffa520..281abb0ddf00fcf674d6996c38debcb6d9bfc31a 100644 (file)
@@ -202,6 +202,7 @@ systemctl restart apache
 
 See [How to install the Apache web server](https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-10) for a complete guide.
 
+
 ### Nginx
 
 This examples uses nginx and the [PHP-FPM](https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mariadb-php-lemp-stack-on-debian-10#step-3-%E2%80%94-installing-php-for-processing) PHP interpreter. Nginx and PHP-FPM must be running using the same user and group, here we assume the user/group to be `www-data:www-data`.
index f0cf4e9746833777f48a30c29c94d769b2dc4ea8..e1ed5e0006ce9368f1d3fb21cda23b62d4850c6f 100644 (file)
@@ -176,6 +176,16 @@ Under Opera, you can't drag'n drop the button: You have to right-click on it and
 - A new date/time field becomes available in the edit/new Shaare dialog.
 - You can set the timestamp manually by entering it in the format `YYYMMDD_HHMMS`.
 
+### Clearing Shaarli caches
+
+For debugging purposes:
+
+```bash
+# clear raintpl cache and temporary files
+find /var/www/links/cache/ /var/www/links/pagecache/ /var/www/links/tmp/ -type f -exec rm -v '{}' \;
+# if you have a php accelerator such as php-apcu, restart the webserver
+sudo systemctl restart apache2
+```
 
 -------------------------------------------------------