We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Clear caching for a single entry / tag / template

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hey EE Devs,

Is there anyway to clear the cache for a specific entry / template tag / or page? I found this in the EE code:

if ($PREFS->ini('new_posts_clear_caches') == 'y')
{
    $FNS->clear_caching('all');
}
else
{
    $FNS->clear_caching('sql');
}

Which relates to this method:

function clear_caching($which, $sub_dir = '', $relationships=FALSE)

But how to I determine the sub-directory?

Cheers

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.