-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi all,
I did some tests using this package on my wordpress installations and because I don't know much how works wordpress cache, I was wondering some questions.
As I can see, if run this
$ wp --path='/var/www/wordpress' super-cache enable
The only thing that changes is in wp-cache-config.php - $super_cache_enabled = 'true';
But in wordpress frontend, cache still remains disabled:
The same thing happens with
$ wp --path='/var/www/wordpress' super-cache disable
variable $super_cache_enabled changes to false but in frontend, cache remains enabled.
So, I did some research and I see that in frontend if you enable or disable cache, two variables of wp-cache-config.php changes: $cache_enabled and $super_cache_enabled
My workaround to solve this was in enable / disable functions of super-cache package adding wp_cache_disable(); and wp_cache_enable();.
But my concern is if maybe super-cache enable / disable should affect only to super-cache plugin (as it is now). In the other side, in wordpress frontend, if you check / uncheck enabling cache, you are modifying the two values.
What do you think guys?
Thank you.
