Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jmtb89

    (@jmtb89)

    Hi, thank you for your reply, I haven’t tried the ESI solution yet, as I’m still finishing building the website on localhost with wamp, but I’m going to try this as soon as I transfer the website on the server.

    However, I may have found yet another solution: I’ve just noticed the “Force Cache URIs” box in “Settings->>Excludes” Tab and it states like this:

    “Paths containing these strings will be cached regardless of no-cacheable settings…..
    To define a custom TTL for a URI, add a space followed by the TTL value to the end of the URI”

    So I was thinking about entering all the 100 pages that need 1800 TTL this way:

    mywebsite.com/mypagea 1800
    mywebsite.com/mypageb 1800
    mywebsite.com/mypagec 1800
    mywebsite.com/mypaged 1800
    …..

    -Do you think this will work?
    -And if yes, will this solution be less resource intensive than using ESI?
    -And most importantly, will these pages be cached publicly or privately?

    I guess (and hope) they will be cached publicly, I’m asking you because this is not specified in the text under the box.

    Waiting for a reply and thank you so much for your help and support.

    Thread Starter jmtb89

    (@jmtb89)

    Hi, thank you for your reply, I didn’t know about this feature, it looks like a great solution for my necessity, I’m going to try this as soon as I transfer the website on the server.

    I was also thinking about another solution: since the pages that need a 1800 TTL represent 90% of the total WordPress Pages on the website, I was thinking about the possibility of using a cron job to trigger the “Purge Pages – This will Purge Pages only” command in “LiteSpeed Cache Management” –>> “Purge” Tab.

    Is there a way to trigger this command via a cron job every 30 minutes?
    Wouldn’t this solution be lighter on server resources than using ESI?

    Basically it would be like pushing that button every 30 minutes via cron job, please let me know and thank you so much for your help, I really appreciate.

    Thread Starter jmtb89

    (@jmtb89)

    Hi Lisa and thank you so much for your reply, so basically I have a classifieds website (I’m using the plugin WP Job Manager) with approximately 5000 single listings and 100 listing pages (where all the listings appear), the website has no login feature and no personalized pages, everything is managed by two wordpress administrators.

    Each one of these 100 pages randomly displays the listings belonging to a certain WP Job Manager category using this WP Job Manager shortcode in the page: [jobs categories=my-category show_filters=false orderby=rand], so without a cache the listings get reshuffled at each page refresh.

    Public Cache with 604800 TTL is perfect for the 5000 single listings, but if I have the same TTL for the 100 listing pages then users would see the same listings placement with no reshuffling for 604800 seconds which is too much, hence the need for using a much shorter TTL for these 100 pages, 1800 seconds would be perfect so users would see a new randomly reshuffled placement of listings every half an hour.

    I hope this clarifies a bit, waiting for a reply and thank you so much for your support.

    Thread Starter jmtb89

    (@jmtb89)

    Hi Emre, thank you for your quick reply, I’m currently working on localhost with WAMP, I’ve added this:

    define(‘WPFC_TOOLBAR_FOR_AUTHOR’, true);

    to my wp-config.php, but the button doesn’t show up at all when I log in with an author account.

Viewing 4 replies - 1 through 4 (of 4 total)