Author |
Message |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Sat May 11, 2013 7:55 pm Subject: isCached method returning empty result |
the problem is, that i deleted templates_c before, but memcache was activated... when i turn it off and deleted that directory it started to work... but question is why memcache is not working... i mu ... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Sat May 11, 2013 7:44 pm Subject: isCached method returning empty result |
ok... this is very strange... i don't know what i did, but magically it's working... maybe deleting all the files in templates_c directory... maybe something else... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Fri May 10, 2013 8:43 am Subject: isCached method returning empty result |
ok i used ReflectionMethod to find out source code of isCached method... maybe helps...
public function isCached($template = null, $cache_id = null, $compile_id = null, $parent = null) ... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Fri May 10, 2013 8:28 am Subject: isCached method returning empty result |
nope... just hypotetically is there some way isCached can return empty result? I swear i do not alternate your code... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Mon Apr 29, 2013 2:25 pm Subject: isCached method returning empty result |
i agree it's very strange. I am using smarty 3.1.13. But same behaviour was also in older version of smarty. |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Sun Apr 28, 2013 8:30 pm Subject: isCached method returning empty result |
Not that isCached does not return content. It returns just true/false to indicate if the cache file is valid or not.
You must still call display() or fetch() to get the content.
I know that. I ju ... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Sun Apr 28, 2013 7:58 pm Subject: isCached method returning empty result |
well i am using memcache now. But when i switch to standard file cache - yes there is a non-empty files in my cache directory. But method is not working... but i must emphasize that i didn't make any ... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Mon Apr 22, 2013 8:03 pm Subject: isCached method returning empty result |
ok, sorry for the delayed response i was on a business trip. This is testInstall output:Smarty Installation test...
Testing template directory...
/www/doc/www.myserver.com/www/graphic/smarty is OK.
... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Thu Apr 11, 2013 3:39 pm Subject: isCached method returning empty result |
well i also tried to set template directory to /www/doc/www.myserver.com/www/graphic/smarty/ and then used relative paths, but smarty wasn't possible to locate my template:
$smarty->setTemplateD ... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Thu Apr 11, 2013 8:28 am Subject: isCached method returning empty result |
Yes, there is a content in cache file. I decided to post whole code. Maybe i am missing something:
require('libs2/Smarty.class.php');
$smarty = new Smarty;
$smarty->setTemplateDir( ... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Mon Apr 08, 2013 4:53 pm Subject: isCached method returning empty result |
well template is successfully created in smarty_internal_templatebase.php, but it looks that, $template->cached->valid is set, but empty string... |
Topic: isCached method returning empty result |
demo055
Replies: 21
Views: 26827
|
Forum: Bugs Posted: Mon Apr 08, 2013 2:56 pm Subject: isCached method returning empty result |
i am using smarty file cache with various cache_id, but isCached method is always returning empty result:
$smarty->setCacheDir('/www/doc/www.myserver.com/www/smarty/cache');
$cache_id ... |
|