|
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 |
kid Smarty Rookie
Joined: 04 Jul 2004 Posts: 13
|
Posted: Sat Mar 12, 2005 10:50 am Post subject: Cache Handler leicht modifizieren |
|
|
Hallo,
das Cache-Verhalten wird ja bei Smarty über den Cache Handler bestimmt - http://smarty.php.net/manual/de/section.template.cache.handler.func.php .
Diesen möchte ich leicht abändern - also nur ein paar Variablen in den Dateinamen der Cache-Dateien bringen. - Wie kann ich den leicht ändern? Ich möchte nicht auf Datenbank wie in dem gegeben Beispiel umsteigen. Kann ich von der Smarty.class.php gezielt eine Funktion mit einer überschreiben?
Viele Grüße,
Alexander |
|
Back to top |
|
kid Smarty Rookie
Joined: 04 Jul 2004 Posts: 13
|
Posted: Sat Mar 12, 2005 1:01 pm Post subject: |
|
|
Feinstens, Problem gelöst, hier die Lösung:
einfach bei der display Funktion:
function display($resource_name, $cache_id = null, $compile_id = null)
in meinem Fall die $compile_id setzten wie gewünscht, die taucht dann in dem Dateinamen bei templates_c auf. |
|
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
|