Osclass Support Forums

Osclass plugin support => Cache Plugin => Topic started by: webcity on May 01, 2023, 08:51:28 AM

Title: How to enable page count on cached pages?
Post by: webcity on May 01, 2023, 08:51:28 AM
Hi,

If I'm viewing a cached item page like (with item pages caching enabled):
https://plugins.abprofitrade.eu/real-estate/houses-apartments-for-sale/nikon-powershow-s_i1209

Is there anyway to update the page count when the page is being fetched from cache?

Many thanks
Title: Re: How to enable page count on cached pages?
Post by: Wiz on May 01, 2023, 01:14:14 PM
Not possible with how the current version of the cache plugin works as it is geared more towards caching static content. Listing cache only gets updated on manual regeneration or when listing is edited/updated. No harm in raising a feature request with @MB

Use other means of caching for dynamic content ie. redis, static files, opcache, cdn etc.
Title: Re: How to enable page count on cached pages?
Post by: webcity on May 02, 2023, 05:14:43 AM
Thanks for the reply.

I'll stick with APCu for the item pages and use the cache plugin for the home and search pages, this is where the big speed gains are for page loading times when you have many listings.

Cheers
Title: Re: How to enable page count on cached pages?
Post by: MB Themes on May 03, 2023, 05:56:31 PM
Slternative is to clean cache daily, but it may be problem if there is many items.
Another one is to load views/dynamic content via JS/ajax calls
Title: Re: How to enable page count on cached pages?
Post by: webcity on May 04, 2023, 03:04:25 PM
Thanks for your help :-)