any change of opts needs to invaldiate cache

This commit is contained in:
2025-10-12 21:22:14 +11:00
parent 4556afb3bb
commit 27e06a9462

View File

@@ -700,10 +700,8 @@ function isMobile() {
// when we change one of the options (noo, how_many, folders) - then update '{how_many} files' str,
// tweak noo menu for folders/flat view then reset the page contents based on current OPT values
function changeOPT(successCallback) {
var old_how_many=OPT.how_many
OPT.how_many=$('#how_many').val()
// if we change how_many invalidate page cache as page size is different now
if( OPT.how_many != old_how_many )
// changes invalidate page cache so clear it out
document.page.length=0
new_f=$('#folders').val()
new_f=( new_f == 'True' )