PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

No Cache ONLY for SuperAdmin

Quick Cache Plugin. Speeds up WordPress®.

No Cache ONLY for SuperAdmin

Postby nouxtywe » October 10th, 2011, 7:16 am

Hi guys,

Just trying to figure out how to not cache ONLY for the superadmin
Any guess would be appreciated

I've tried to change advanced_cache.php to this
Code: Select all
else if (QUICK_CACHE_DONT_CACHE_WHEN_LOGGED_IN && function_exists ("is_super_admin") && is_super_admin ())
                                 return $buffer; /* Do NOT cache. * Re-checking this here ( when possible ) because it's so important! */
                              /*


Note the is_super_admin() function
But it doesn't work
I guess I don't really understand where to make this modification :p

Thanks for your help... :)
User avatar
nouxtywe
Registered User
Registered User
 
Posts: 7
Joined: September 28, 2011

Re: No Cache ONLY for SuperAdmin

Postby nouxtywe » October 26th, 2011, 2:07 am

up ! Any guess anyone ?
User avatar
nouxtywe
Registered User
Registered User
 
Posts: 7
Joined: September 28, 2011


Return to Quick Cache Plugin

Who is online

Users browsing this forum: No registered users and 1 guest