Author |
Message |
Topic: Assigning closuer as variables in smarty gives syntax error |
attock
Replies: 1
Views: 5480
|
Forum: Bugs Posted: Sun Mar 17, 2013 3:25 pm Subject: Assigning closuer as variables in smarty gives syntax error |
Smarty version: 3.1.13
- php (5.3+)
$myVar = function() { return blah; }
$smarty->assign('myVar', $myVar)
- Template
{$myVar()}
- Result Fatal Error
Fatal error: Uncaught exceptio ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Thu Sep 09, 2010 8:46 pm Subject: Directory size limit - Smarty Scalability |
Sorry I forgot to mention:
- Cache: false
- Force compile: false
- Complie check: true
Not using any other fancy configurations, so use_sub_dirs and all other configs are default.
I had thi ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Thu Sep 09, 2010 7:43 pm Subject: Smarty3 inherits this issue |
I am using Smarty3-RC3, and still seeing this issue.
I am not specifying any cache_id\compile id..., just using fetch & displaying passing the template name. |
Topic: {extends} and {include} relative path of script |
attock
Replies: 2
Views: 7295
|
Forum: Smarty 3 Posted: Wed Jun 30, 2010 1:39 am Subject: {extends} and {include} relative path of script |
Thanks for the tip.
Actually the file is included (by looping over template_dir). I was using WRONG file name in {include} and had to enable force_compile to ensure it was getting recompiled. |
Topic: {extends} and {include} relative path of script |
attock
Replies: 2
Views: 7295
|
Forum: Smarty 3 Posted: Tue Jun 29, 2010 3:28 am Subject: {extends} and {include} relative path of script |
Trying out Smarty 3 and loving it specially {extends}.
Question using {extends}:
The {include file="xyz"} only includes files from relative path to the script being executed. This works ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Thu Jan 14, 2010 2:33 am Subject: Directory size limit - Smarty Scalability |
Yes you are right. I got distracted with the scaling issues, because I have never used smarty on a with site with more than 600k cached files.
Cheers
Ah, I see yes the cache_id is used in the ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Wed Jan 13, 2010 11:34 pm Subject: Directory size limit - Smarty Scalability |
Smarty version: version 2.6.26
OS: VISTA
Example 1: Would create wrt file in OS's temp folder (C:\Windows\Temp)
$smarty = new Smarty();
$smarty->caching = 2;
$smarty- ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Wed Jan 13, 2010 6:38 pm Subject: Directory size limit - Smarty Scalability |
I did some investigation:
# for i in $(seq 1 2 33000); do mkdir "testdir$i"; done
When you reach a max, you get this error:
mkdir: cannot create directory `aa': Too many ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Mon Jan 11, 2010 9:59 pm Subject: Directory size limit - Smarty Scalability |
2.6.26 is the latest smarty 2 release. what operating system are you using?
Server1: Debian Lenny 2.6.26-2-amd64
Server2: Linux version 2.6.9-89.0.11.ELsmp (mockbuild@x86-002.build.bos.redhat.co ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Mon Jan 11, 2010 9:47 pm Subject: Directory size limit - Smarty Scalability |
Do you have more than 65k of directories in one level? I think there is a limit of 65k inodes per level, dirs or files for a lot of file systems. I'd have to double check that though. What file system ... |
Topic: Directory size limit - Smarty Scalability |
attock
Replies: 12
Views: 15921
|
Forum: General Posted: Mon Jan 11, 2010 9:20 pm Subject: Directory size limit - Smarty Scalability |
I have two servers using smarty with the followings specs:
1)
use_sub_dirs = false
#cat /proc/sys/fs/file-max --> 756009
This server has a cache of 106937 files in a directory and it works ... |
Topic: Multiple Cache Directories? |
attock
Replies: 2
Views: 4836
|
Forum: General Posted: Mon Jan 04, 2010 3:17 pm Subject: sweet! |
thanks a lot! |
Topic: Multiple Cache Directories? |
attock
Replies: 2
Views: 4836
|
Forum: General Posted: Mon Jan 04, 2010 2:27 pm Subject: Multiple Cache Directories? |
Is it possible to store cache in multiple directories? I would like to cache similar objects together in its own directory. The closet thing I could find is 'Cache Grouping', but that wouldn't create ... |
|