Can you clarify the issue a bit further? Do you mean that when you clear the CE cache it is deleting /cache instead of just /cache-enabler?
when i hit save changes in cache enabler settings pages it totally removes /wp-content/cache/cache-enabler/mydomain.com directory only recreating it after a few requests repopulate the cache
hitting save changes notes = Saving these settings will clear the complete cache.
as opposed to what I expected to just deleting contents within /wp-content/cache/cache-enabler/mydomain.com/* which the clear cache link in admin does ?
-
This reply was modified 7 years, 10 months ago by
George Liu.
I just tested this on a new WP instance and in both cases, clearing the cache deletes the /cache-enabler directory. This is the same behavior as running a cron job with the rule we’ve defined on the Cache Enabler support page (rm -rf /path/to/your/wordpress/wp-content/cache/cache-enabler/).
Is there a reason why you want to have the plugin remove just the contents within the cache-enabler directory as opposed to deleting the directory itself?
On benchmark tests for the first initial run without any cache directory seems slightly slower than if the directory already existed. FYI, for cronjob for advanced cache config purge i have just been emptying out the directory not removing the directory itself as well