|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Evergreen89 Smarty n00b
Joined: 16 Mar 2019 Posts: 1
|
Posted: Sat Mar 16, 2019 1:15 pm Post subject: |
|
|
Hallo. Im Verzeichnis /cms/ liegt mein CMS. Ändere ich dort etwas, möchte ich gerne den gesamten Cache der Webseite löschen.
In mein Script in der Daten in der Datenbank aktualisiert werden, befindet sich der Aufruf clearAllCache();
require($_SERVER["DOCUMENT_ROOT"].'/libs/Smarty.class.php');
$smarty = new Smarty();
$smarty->clearAllCache();
Was Caching betrifft bin ich noch blutiger Anfänger, doch leider funktioniert dies nicht. Müssen noch Pfade etc. angepasst werden? |
|
Back to top |
|
Grizzly Smarty Pro
Joined: 15 Apr 2011 Posts: 172 Location: Germany
|
Posted: Mon Mar 25, 2019 6:51 am Post subject: |
|
|
Möchtest du den Cache löschen oder den template_c Ordner? Das sind nämlich unterschiedliche Dinge. Alternativ kannst du den Ordnerinhalt über gewöhnliche PHP Methoden löschen, wäre selber Effekt.
Überigens solltest du bei einem Forum-Thread auch mal den Betreff eingeben und vllt sowas wie "Hallo zusammen, ich habe folgendes Problem..."
Ist nicht nur höfflicher sondern erhöht die Wahrscheinlichkeit, dass dir jemand antwortet... |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|