Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpublished pages don't get deleted #43

Open
torleif opened this issue Feb 24, 2015 · 5 comments
Open

Unpublished pages don't get deleted #43

torleif opened this issue Feb 24, 2015 · 5 comments

Comments

@torleif
Copy link

torleif commented Feb 24, 2015

If someone unpublishes a page, it does not get deleted and thus it's possible to still view it.

@torleif
Copy link
Author

torleif commented Mar 8, 2015

Also if someone changes a page type from a statically cached type to a non statically cached type, the file remains.

@svandragt
Copy link

I suppose this is by design. The docs say:

Note that the path directory will be populated with the new exported files. This script does not empty the directory first so you may which to remove the folder (rm -rf cache && sake dev/tasks/StaticExporterTask path=cache)

@purplespider
Copy link

Has anyone come up with a workaround for this?

I've just had a client wondering why pages they deleted are still showing in Google!

@wernerkrauss
Copy link

@purplespider you can write a hook onAfterDelete() or onAfterUnpublish() and delete the file?

Alternatively a cron task to delete the files every night and create them again? Afaik RebuildStaticCacheTask deletes the old files, at least when domainbased caching is on.

@dhensby
Copy link
Contributor

dhensby commented Sep 17, 2018

static publish queue handles this a lot better for SS4 sites now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants