|
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 |
daniel987 Smarty Rookie
Joined: 26 Aug 2004 Posts: 20
|
Posted: Fri Sep 17, 2004 4:06 pm Post subject: Problem mit mysql Cache bzg Timestamps |
|
|
Ich habe ein Problem und zwar habe ich jetzt eigentlich alles soweit hinbekommen wie ich das wollte, der Cache und die Templates sind in der Datenbank.
Nun habe ich aber das Probelm das die Sache mit der Cache Funktion nicht richtig funzt dh. Der Template Cache (Ordner) wird nicht neugeneriert .
Nur durchmanuelles löschen bekommt man Smarty dazu was kann da falsch sein? Hier meine betreffende Funktion:
[php:1:825229479a]<?php
function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj)
{
// Datenbankabfrage um '$tpl_timestamp' zuzuweisen
global $mysql;
$query=$mysql->query("SELECT Date FROM Templates WHERE ID=$tpl_name");
$tmp_tpl_timestamp=$mysql->get_results($query);
$tpl_timestamp=$tmp_tpl_timestamp['Datum'];
return true;
}
?>[/php:1:825229479a]
Achso die Timestamp Länge ist 14, könnte das vielleicht die Ursache sein? _________________ It's better to burn out than to fade away. |
|
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
|