WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Conflict with Accessibility version (2 posts)

  1. adamatbase
    Member
    Posted 3 years ago #

    I have an accessibility plugin which sets a cookie to "ok" if the user chooses the accessibility option. then if the cookie is set to OK it loads a a different stylesheet.

    The problem I have is that with supercache on, when I navigate throughout the site some pages have the normal stylesheet and some have the new accessibility stylesheet.. there is no consistency.

    ideas?

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    The accessibility plugin will have to modify the "cache_key" Supercache uses to record legacy cached pages. Check wp-cache-phase1.php and look for wp_cache_get_cookie_values() - there's a cacheaction you can use there. Also see the developer docs linked from the Supercache documentation.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic