• When i have Ajax Search Lite active the X-Pj-Cache-Status response header (set by Redis Page Cache) is always miss, meaning the page is not cached.

    I opened a support thread on Ajax Search Lite support forum.

    This is the response:

    Can you please ask the plugin author if there is anything known particularly causing this type of issue?

    I have not met problems with caching plugins so far, so I don’t know what could be wrong. As far as I know there is nothing dynamically generated on each page load in Ajax Search Lite, which could cause anything similar.

    Can you help solving this issue?

    https://www.ads-software.com/plugins/pj-page-cache-red/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Check the cookies first. I had to exclude ‘phpsessid’ to get any hits. If you want to debug: Change ‘$debug=true;’ in advanced-cache.php and post the headers here.

    Plugin Contributor Pressjitsu

    (@pressjitsu)

    It would be easier to help if you gave us a URL to your site. I took a look at the Ajax Search Lite plugin and it seems to be initializing some kind of session on every page load in a _wp_session cookie:

    includes/classes/session/includes/wp-session.php:
    82: add_action( 'plugins_loaded', 'wp_session_start' );

    That’s quite a silly thing to do, and it’s probably the reason why pages aren’t being served from cache, because they aren’t being saved to cache in the first place due to a Set-Cookie header on every request.

    You can read more about the performance and cacheability issues caused by sessions here. It’s mostly about PHP sessions but applies to your case as well (any random cookies really).

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ajax Search Lite prevents Redis Page Cache from serving cached pages’ is closed to new replies.