Why is ” Private Cache TTL” maximum 1hr when “Public Cache TTL” isn’t?
-
LiteSpeed Cache Settings -> Default Public TTL value greater than 30 seconds
vs
LiteSpeed Cache Settings -> Default Private TTL value range 60-360 seconds (max=1hr)
For logged-in users who receive private cache, the pages served can have a max TTL of 1hr set via the Litespeed Cache Settings -> Cache admin menu
Just above it, the Public TTL accepts values greater than 30sec so can be 8 weeks if you like.
It seems strange that logged-in users experience worse performance by having the server re-cache pages at least once every hour, adding delay for logged-in user receiving the page as well as loading the server. A waste of resources. In my case, these are static content pages with a ESI block navbar (TTL=0) with their avatar.
Why not allow private cache TTL to be able to be set without limit the 1hr arbitrary limit like public cache?
I modifed tpl\cache\settings-ttl.tpl.php with boldfaced line allow much the same much longer Private TTL like Public TTL, set it to 8 weeks, waited an hour and 1min and confirm my server is serving cached pages with the TTL greater than 1hr to logged-in users set, so less unnecessary server load.
Unless I am missing some underlying reason for this 1hr maximum private TTL, pls consider adjusting the official LS plugin release to allow private cache ttl be unlimited in the same manner as public cache. It would mean I don’t need to manually modify the code to do and my server appreciates the reduced unnecessary load.
<table class="wp-list-table striped litespeed-table"><tbody> <tr> <th> <?php $id = Base::O_CACHE_TTL_PUB ; ?> <?php $this->title( $id ) ; ?> </th> <td> <?php $this->build_input( $id ) ; ?> <?php $this->readable_seconds() ; ?> <div class="litespeed-desc"> <?php echo __('Specify how long, in seconds, public pages are cached.', 'litespeed-cache'); ?> <?php $this->recommended( $id ) ; ?> <?php $this->_validate_ttl( $id, 30 ) ; ?> </div> </td> </tr> <tr> <th> <?php $id = Base::O_CACHE_TTL_PRIV ; ?> <?php $this->title( $id ) ; ?> </th> <td> <?php $this->build_input( $id ) ; ?> <?php $this->readable_seconds() ; ?> <div class="litespeed-desc"> <?php echo __( 'Specify how long, in seconds, private pages are cached.', 'litespeed-cache' ) ; ?> <?php $this->recommended( $id ) ; ?> <?php $this->_validate_ttl( $id, 30 ) ; ?> </div> </td> </tr>
- The topic ‘Why is ” Private Cache TTL” maximum 1hr when “Public Cache TTL” isn’t?’ is closed to new replies.