How to clear DB cache by using code?

Hello,

I wanna clear the cache(in Dolphin) automatically when the profile page is loaded.

Can any one give idea asp.

Thanks in Advance.

Quote · 30 Jul 2013

Which cache, there are several, including two file caches.

Geeks, making the world a better place
Quote · 30 Jul 2013

As I mentioned in Admin panel, under tools option, which has store cache is displayed in pie chart

Quote · 31 Jul 2013

And why on earth would you want to do that when a profile is viewed?

Doing so would slow down the loading of the profile page considerable. Because when the cache is cleared, dolphin automatically rebuilds it, and the rebuilding of the cache takes time which will result in a huge slow down.

If you don't want to use the cache, shut it off in admin. Clearing on every profile page load is a mistake and may even cause problems such as slow downs, overloaded database server, ect.

You can see examples of how the cache is cleared in the file administration/cache.php which calls functions in inc/classes/BxDolCacheUtilities.php

But as i said. I discourage you from doing so. I believe it will be a big mistake that will kill your server and sites performance.




https://www.deanbassett.com
Quote · 31 Jul 2013

Oh, and please stop using the General and Presale forum topic to post your questions. It's not where these questions belong.

If your running dolphin 7.0.x then use the dolphin 7.0 forum.

If your running dolphin 7.1.x then use the dolphin 7.1 forum.

Using the proper forum at least gives us a clue as to which version line of dolphin your using.



https://www.deanbassett.com
Quote · 31 Jul 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.