CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 CacheManager [PHP]

Print topic Send  topic

Author Message
feha


Posts: 712
Posted: 01/18/2006, 1:09 PM

In order to Clear your Cache [Complete]

If You editing content (Article) and you have used Cache.

Use this code on an BeforeUpdate Event.
  
    global $CCSCacheManager;  
    $CCSCacheManager->Clear();  

enjoy CCS 3 .-)

_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message
feha


Posts: 712
Posted: 01/18/2006, 2:16 PM

Also if you use on your page a Page Views counter
Be sure to place it On Cache Event in order to count Page Views

Simple counter code:
  
//Page_Content_Block_inc_OnCache @1-69F3A2A2  
function Page_Content_Block_inc_OnCache(& $sender)  
{  
    $Page_Content_Block_inc_OnCache = true;  
    $Component = & $sender;  
    $Container = CCGetParentContainer($sender);  
    global $Page_Content_Block_inc; //Compatibility  
//End Page_Content_Block_inc_OnCache  
  
//Custom Code @53-2A29BDB7  
// -------------------------  
    // Write your own code here.  
if(CCGetParam("pid","") > 0)  
{  
$db = new clsDBddd();  
$pagesSQL="UPDATE __cms_pages SET views=views+1 WHERE pid=".CCGetParam("pid","");  
$db->query($pagesSQL);  
$db->close();  
}  
// -------------------------  
//End Custom Code  
  

_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message
peterr


Posts: 5971
Posted: 01/18/2006, 4:51 PM

I'm glad to see You discovering this cool feature :-)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.