• Hello,

    I’ve installed WP Super Cache on my website under construction.

    Settings:
    Cache delivery method: simple
    Cache timeout: 150 sec
    Garbage collection: 150 sec

    The website being under construction, its access is protected by a password through the .htaccess.

    Caching is done, but not the garbage collection. Once they are older than 150 sec, the pages remains in “Stale Full Cache Files” in Contents.

    The only way to empty the cache is by doing it manually. It is also working when I update a page. But the timer seems to have no effect.

    I use exactly the same settings of WP Super Cache on another website, hosted by the same hoster (OVH), and there is no issue on this one.

    Do you have any clue? May it be due to the password needed to access the website?

    Thank you for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter emrik

    (@emrik)

    Hi again,

    I’ve temporarily deleted the password requirement in .htaccess and the garbage collection is now working properly. This issue will then be solved when my website will be fully online.

    Should have tried before writting ??

    Thank you

    dimal

    (@dimalifragis)

    150 seconds is 2 and a half minutes. Why have such a short cache ttl ?

    Thread Starter emrik

    (@emrik)

    It was for tests purpose only. When the website will be online, I will define a much longer period indeed.

    Thank you

    dimal

    (@dimalifragis)

    Well the thing is that if the site doesn’t get ANY traffic in 2,5 minutes no CRON is done so NO garbage collection is run.

    Thread Starter emrik

    (@emrik)

    I know what you mean, but I’m going myself on the website to perform the tests (I’ve activated the caching for all users), so the timing is not an issue at this stage.

    I am pretty sure that the collection is not done due to the .htaccess and .htpasswd, so I consider that my problem is solved, as I will remove the password when the website will be ready.

    Thank you for your time

    I bet the cron system wasn’t working because of the .htaccess password you had on there..

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Garbage collection not working’ is closed to new replies.