• Resolved tomalaki

    (@tomalaki)


    Hi,
    I wrote a php script in my theme that apply “dark” class in body between time 22 until 6am. I set Cache PHP Resources off but when litecache is active , it won’t work. It work perfectly when litecache if inactive. What is the problem?
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    That’s probably due to main page is cached already , so your PHP won’t be executed

    Please consider make your PHP script to be ESI block

    Best regards,

    Thread Starter tomalaki

    (@tomalaki)

    Thank you. And just a small thing, how to remove this?
    <!– Block uncached by LiteSpeed Cache 3.0.8.6 on 2020-05-09 04:30:25 –>
    It comes in my css class name and I don’t want put body in block

    Thread Starter tomalaki

    (@tomalaki)

    Thank you. And just a small thing, how to remove this?
    <!– Block uncached by LiteSpeed Cache 3.0.8.6 on 2020-05-09 04:30:25 –>
    It comes in my css class name and I don’t want put body in block

    Well, I changed line 511 in core.cls.php to ”.
    Thank you

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

The topic ‘Cache PHP Resources won’t work’ is closed to new replies.