wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

[Discussion] Remove old RUCSS items from database when option is disabled

Open wordpressfan opened this issue 1 month ago • 0 comments

Now when we disable RUCSS, we keep the items in the database aiming for enabling the feature again So it's enabled again, nothing will be needed, because used CSS is there in the database so just clear the cache and everything will be added again inside the page.

The problem here is that when we disable RUCSS for long time, everything will become obsolete and needs to be refreshed.

I created this issue to start discussing what we exactly need to do here, from what I see, we have a few options:

  1. Once disabling RUCSS, create an action scheduler single task after one month to truncate the table and cancel this task with RUCSS enable.
  2. Keep the cron job that removes old urls from database even when the feature is disabled.

Let's have a discussion.

wordpressfan avatar Nov 17 '25 07:11 wordpressfan