Author |
Message |
Topic: Smarty cache - 1800 page = 100 Mb cache? |
i-litovan
Replies: 1
Views: 3843
|
Forum: General Posted: Tue Jan 21, 2014 9:03 am Subject: Smarty cache - 1800 page = 100 Mb cache? |
Hellow.
My site have 1800 page - generation with smarty.
Smarty cache size = 100 Mb cache.
100 000 page = 6 Gb cache.
Is this normal?
Thenks.
|
Topic: Read Template from Variable as Resource |
i-litovan
Replies: 19
Views: 41665
|
Forum: General Posted: Thu Oct 31, 2013 1:04 pm Subject: Read Template from Variable as Resource |
Thenks... |
Topic: save additional data in cache |
i-litovan
Replies: 6
Views: 9499
|
Forum: General Posted: Thu Oct 31, 2013 12:48 pm Subject: save additional data in cache |
Maybe this will help ...
http://www.smarty.net/forums/viewtopic.php?t=8964 |
Topic: save additional data in cache |
i-litovan
Replies: 6
Views: 9499
|
Forum: General Posted: Thu Oct 31, 2013 12:38 pm Subject: Re: save additional data in cache |
I need to store some data in the cache - beside the html in the cache.
It works like this:
$smarty = new Smarty();
$smarty->caching = true;
if(!$smarty->is_cached('test.tpl ... |
Topic: {config_load} - multilene varible in file.conf |
i-litovan
Replies: 4
Views: 4613
|
Forum: General Posted: Wed Sep 25, 2013 8:06 pm Subject: {config_load} - multilene varible in file.conf |
Config files can have named sections.
[section1]
...
[section2]
...
[.hidden]
....
at $smarty->configLoad(...) oder {config_load...} you can specifiy a section ... |
Topic: Clipcache - new focus method |
i-litovan
Replies: 2
Views: 3848
|
Forum: General Posted: Wed Sep 25, 2013 6:13 pm Subject: Clipcache - new focus method |
{clipcache_0 group="headerMenu" cache_id="cache_key_page_`$page.uid`" cache_lifetime=-1}
fwefewfew
{/clipcache_0}
|
Topic: Clipcache - new focus method |
i-litovan
Replies: 2
Views: 3848
|
Forum: General Posted: Wed Sep 25, 2013 5:56 pm Subject: Clipcache - new focus method |
{clipcache[50x] group="headerMenu" cache_id="cache_key_page_`$page.uid`" cache_lifetime=-1}
--
{/clipcache[50x]}
VS
{clipcache ... |
Topic: {config_load} - multilene varible in file.conf |
i-litovan
Replies: 4
Views: 4613
|
Forum: General Posted: Sun Sep 22, 2013 1:04 pm Subject: {config_load} - multilene varible in file.conf |
These are defined by tripple qoutes.
multiline = """ line1
line2
line3 """
See http://www.smarty.net/docs/en/config.files.tpl
Thanks...
but there was still ... |
Topic: Clipcache - new focus method |
i-litovan
Replies: 2
Views: 3848
|
Forum: General Posted: Sat Sep 21, 2013 11:37 pm Subject: Clipcache - new focus method |
Hi
I modernization clipcache...
{clipcache group="test123" cache_id="cache_key_page_`$page.uid`" cache_lifetime=5}
So you can use a variable in blocks clipcache
prefilter ... |
Topic: {config_load} - multilene varible in file.conf |
i-litovan
Replies: 4
Views: 4613
|
Forum: General Posted: Sat Sep 21, 2013 12:10 pm Subject: {config_load} - multilene varible in file.conf |
Hi
How can I declare miltiline varible in the configuration file?
Example:
{config_load file=file.conf}
file.conf
#---------------------------------------------------------------
# G ... |
Topic: Print 1 & Exit in My template |
i-litovan
Replies: 4
Views: 8677
|
Forum: General Posted: Sat Sep 21, 2013 12:06 pm Subject: Print 1 & Exit in My template |
your script exits right after printing 1111.
exit();
the exit() function ceases the execution of PHP altogether, not just exiting the php script you are in.
and FWIW, don't use {php} tags at ... |
Topic: Print 1 & Exit in My template |
i-litovan
Replies: 4
Views: 8677
|
Forum: General Posted: Tue Sep 17, 2013 6:02 am Subject: Print 1 & Exit in My template |
Hi.
I have this template:
<h1>Header</hh1>
next template code
next template code
next template code
next template code
{php}
print 1111;
exit() ... |
Topic: {static} block in {dynamic/nocache} block |
i-litovan
Replies: 1
Views: 3597
|
Forum: General Posted: Sat Aug 03, 2013 9:30 am Subject: {static} block in {dynamic/nocache} block |
Hi
I create two plugin for smarty - {dynamic} block (cahing = false) and {static} block (cahing = true)
And i have template code
{dynamic}
{php} print rand ... |
|