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

StatCache OnDocFormSave #14

Closed
3 tasks done
sepiariver opened this issue Jul 2, 2014 · 2 comments
Closed
3 tasks done

StatCache OnDocFormSave #14

sepiariver opened this issue Jul 2, 2014 · 2 comments
Assignees
Milestone

Comments

@sepiariver
Copy link

  • setting to use "per resource cache clearing" or whatever lexicon
  • when enabled, OnDocFormSave the static cache file for the Resource being edited will be replaced with the new output.
  • setting to clear entire cache on cron versus Clear Cache menu item (this is to hopefully protect the cache from Editors who have been trained, for better or worse, to hit the Clear Cache button every time they edit something.)
@opengeek opengeek self-assigned this Jul 2, 2014
@opengeek
Copy link
Owner

opengeek commented Jul 3, 2014

The property will be regenerate_on_save — when this property is enabled in a property set tied to the OnDocFormSave event for the plugin, saving a Resource will trigger the regeneration of any existing static file for the Resource being saved. This regeneration is dependent on the web server being configured to not serve the existing static file when the HTTP User-Agent header has a value of MODX RegenCache (or this value can be overridden in the property regenerate_useragent)

This is different than the existing regenerate option, which is an existing feature that attempts to regenerate all Resources that are statically cacheable when enabled and the plugin is registered with the OnSiteRefresh event.

There is no way to enable the clearing of the cache on cron via this component, nor is it really necessary. This can be done with a simple script that calls rm -rf /path/to/statcache/* with the appropriate path to the configured statcache directory.

@opengeek
Copy link
Owner

opengeek commented Aug 4, 2014

This should be resolved via v1.4.0-pl

@opengeek opengeek closed this as completed Aug 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants