SimplePortal

Development => Feature Requests => Topic started by: kak2z on May 04, 2012, 01:40:10 AM

Title: cache blocks
Post by: kak2z on May 04, 2012, 01:40:10 AM
I propose to make cache blocks. In each block to make the timing of updates (1 minute - 10 minutes).
What would you open the main portal page opened up a static page, not dynamic.
thank you
Title: Re: cache blocks
Post by: kak2z on May 14, 2012, 02:48:54 AM
it is a bad idea?  :|
Title: Re: cache blocks
Post by: Kryzen on May 14, 2012, 07:44:25 AM
I think this is a really good idea, I'll point the team to this topic. :)
Title: Re: cache blocks
Post by: kak2z on May 15, 2012, 05:20:14 AM
On my site now DDoS attacks. When SiplePortal enabled all the time I see an error 504. Turn off when the portal - page opens.
The portal will probably increase the load on the processor and the Apache
Title: Re: cache blocks
Post by: inter on July 13, 2012, 10:02:17 AM
it is a bad idea?  :|

this is a very good idea  :nervous-happy:
Title: Re: cache blocks
Post by: kak2z on September 25, 2012, 01:23:54 AM
Who know what the news about the new version and caching?  :)
Title: Re: cache blocks
Post by: inter on July 19, 2014, 05:01:22 AM
I cached my "php blocks" in "manually mode":

example:

your content (or your content in file) for your "php block":

Code: [Select]
<?php

// your code ...

if (!($data cache_get_data('your_index_cache')))
{
    
// your code ...
    
cache_put_data('your_index_cache'$data3600);
}

// your code ...
SimplePortal 2.3.8 © 2008-2024, SimplePortal